c++, can I clear the screen?

Programming, for all ages and all languages.
Post Reply
cloudee1

c++, can I clear the screen?

Post 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.
AxelDominatoR

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

Post 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 :/
Post Reply