I am making a tic tac toe game, and for the grid, I had originally made 9 variables to represent the grid's spaces, but instead, I would now like to use a single char array. I can make the array and print certain parts, but I can't change them.
For example: char grid[] = "xoxoxoxox";
But then if i want to change the first entry to also be a "o", how would I do that? I tried grid[0] = "o";
But it didn't work, it said invalid conversion from char to const char (possibly the other way around...)
Thanks everyone.