I have to write a code for class which will create a math game.
I want the game to look neat, therefor how do I make every question on a new screen.
I have tried system("CLS");
but it did not work with my compiler-- I am using Xcode.
For now, I have been using:
cout << string(50, '\n');
but don't really like how that looks.
Is there one command that will work on ever compiler?
Thanks!
cls is a DOS/Windows command. I'm guessing, using Xcode, you're on a Mac.
Try 'system("clear")' or 'system("tput clear")'
Note: do NOT include the single quotes.