Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 210
  • Last Modified:

Clearing the screen

I would like to know if there is a function or standard method of clearing the contents of the screen in a C++ program
0
Paul10
Asked:
Paul10
1 Solution
 
warmcatCommented:
This isn't really a C++ issue; it makes no assumptions about the size, number or kind of display the program has.  However, most character-based displays will interpret

printf("%c", 12);

as a request to clear the display.
0
 
kraphicsCommented:
printf("%c", 12);

did not work for me in MSVC 5.0

Kraphics
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now