|
|
1>MAIN.cpp(46): error C2440: '=' : cannot convert from 'const char [6]' to 'char' 1> There is no context in which this conversion is possible 1>MAIN.cpp(47): error C2440: '=' : cannot convert from 'const char [11]' to 'char' 1> There is no context in which this conversion is possible 1>MAIN.cpp(48): error C2440: '=' : cannot convert from 'const char [7]' to 'char' 1> There is no context in which this conversion is possible 1>MAIN.cpp(49): error C2440: '=' : cannot convert from 'const char [7]' to 'char' 1> There is no context in which this conversion is possible 1>MAIN.cpp(50): error C2440: '=' : cannot convert from 'const char [6]' to 'char' 1> There is no context in which this conversion is possible 1>MAIN.cpp(51): error C2440: '=' : cannot convert from 'const char [5]' to 'char' 1> There is no context in which this conversion is possible 1>MAIN.cpp(52): error C2440: '=' : cannot convert from 'const char [5]' to 'char' 1> There is no context in which this conversion is possible 1>MAIN.cpp(53): error C2440: '=' : cannot convert from 'const char [5]' to 'char' 1> There is no context in which this conversion is possible |
string[] Word
is your problem. That should be a * instead. new
returns a pointer. Note that even if you had a normal static array, the syntax would be string Word[]
.