Hey I wonder how to clear a console screen for a frame update in tic tac toe or some kind of games ?
I know that system("cls"); /*or*/ system("clear"); is not good
and clrscr();doesn't work for me
then for(int i=0;i<10;i++)std::cout<<"\n\n\n\n\n\n" doesn't work as i expected
i heard somthing abour curse library but I don't know how to use it :( any other method to do this ? Or just tell me how to use this curse to clear screen,
The first link he posted shows you like 3 or 4 different ways.
Though my answer to this question would be: "don't". Console programs typically should not clear the console as it wipes history and that is annoying for people who actually use the console.
I know that console is bad for game and I have some game engine installed its much easier to use, but this just a challenge from a friend, to create a simple game with c++ in console window
Your friend challenges you to build a small office building with dirt and rocks. Why do you feel disappointed that you cannot complete the task? You tried and learned a better way.