I'm using Xcode to learn C++. So far things are simple and output goes to a command window. What is the command that clears the old junk from this command window?
myWindow.clear()
screen.clear()
Well, clear is the terminal command, so system("clear"); could work.Fender2112 said:Using google here's what I think I need.
I need clscr() which in found in #include <conio.h> But this file does not exit in Xcode's version of c++
There is also this command: system ("cls"); but this doesn't work on OS X.
I also found this: clear. But I'm not sure of the syntax.