Clear and Redraw.

Nov 15, 2008 at 7:11am
May i ask how to clear the screen in the console and the redraw the whole thing again. For example, when playing a simple tic tac toe game, and the player input each guess, the board will clear and redraw the guess the user input in. Its sort of like refreshing the whole game after every input. Thanks in advance.
Nov 15, 2008 at 7:50am
Well i am also a beginner bu i can help u wid this.
Do sumfin like this
# include <iostream.h>

# include <windows.h>



void main()
{
for(int x=0;x<=100;x++)
{cout<<x;
cout.sync_with_stdio();
Sleep(500);
system("CLS");}

}

Topic archived. No new replies allowed.