I am working on a tic tac toe program with a basic AI which is not yet implemented. I am stuck with the cursor control, I can get the cursor to move but with difficulty, and it will copy and recreate e.g the tic tac toe board or any thing else printed before i used the arrow keys to move the cursor. I am using a char array to make the board and i want to select one square of the board and be able to enter either an X or an O into it when selecting a square using the arrow keys and have it read it as a value by the scoring system.
I have included all of my code.
My 2 cents:
It looks like you are trying to use the cursor on a command line. Instead, make your board with a GUI, like Qt(its cross-platform) or using Windows classes.