I have been having logic errors when trying to change a char from a number to an 'x' or 'o' (not number '0' but letter 'o'). Could anyone help with pointing out where I screwed up? It is supposed to ask the user to type in a number and press enter and would then fill in the number mentioned with an 'x' when the graph is drawn again. When the graph is redrawn the x is not replaced. This is supposed to be a tic tac toe game when I am finished. Thanks for any help!
You forgot the second = sign to differentiate between assignment and comparison for equality. Your entire else-if block has = instead of == for the user1_choice check.
If they enter a single character, e.g '2' to mark box 2, the length of user prompt will be 1. You only run the if/else code if the length is greater or less than 1.
if (user1_prompt.length() > 1 || user1_prompt.length() < 1) {
I am getting the warning "warning C4553: '==' : operator has no effect; did you intend '='?" for every == sign relating to the chars, does anyone know how to fix this? (My updated code for void user1_choice() is: