Hey guys, I was trying to store a letter in the string array to a char array, but it showed this error error: invalid conversion from ‘const char*’ to ‘char’
This is the line in my code that shows error:
else if(board[row][col]=='0')
{
board[row][col]=(out[k].c_str()); //board is a char array whereas
out is a string array
You could change board to a string array, as strings can just be 1 character long, and this would have the same functionality as a char array. This way you would have 2 string arrays, no conversion nessesary.