|
|
In member function ‘int* Board::understandMove(std::string)’: error: invalid conversion from ‘char’ to ‘const char*’ error: initializing argument 1 of ‘int strcmp(const char*, const char*)’ |
sMove[iPos]
which is a char. The compiler quite rightly does not know how to turn this char into a pointer to a constant char, so fails.... || sMove[iPos] == '.')
... || sMove == ".")
... || sMove.compare(".") == 0)
|
|