clear screen

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.
Here is an article from this site. You should have done a search for it before posting:

http://www.cplusplus.com/articles/4z18T05o/
Topic archived. No new replies allowed.