Page 1 of 1

c++, can I clear the screen?

Posted: Sun Dec 19, 2004 1:02 pm
by cloudee1
Ok
so in my little bitty c++ program, actually an install program ::) which creates .cfg file. But anyway I ask a series of questions and wait for their responses. easy enough, but for some reason I can't seem to find how to clear the screen inbetween my questions.

Re:c++, can I clear the screen?

Posted: Sun Dec 19, 2004 5:07 pm
by AxelDominatoR
If it's in a linux environment, you could do a system("clear"); to clear the screen, then continue. Or, you could put something such as cout << "\n\n\n\n\n\n\n\n\n\n\n\netc etc" to move the lines up the console buffer.
I think there's a much more elegant way but these are the only two that comes to mind now :/