Click here to Skip to main content
15,617,116 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I know that there is a method in c++ to clean the screen, but I can't remember the exact syntax for.

Is it clrscn() or clrscr()??

and to which library does it belong?

Updated 2-Feb-11 15:23pm

clrscr() is correct one, Which defination is in "conio.h" file.
Share this answer
Have you tried system("cls")
Share this answer
Stephen Hewitt 3-Feb-11 1:10am    
To me invoking the command interpreter to clear the console seems inefficient and inelegant. I will admit it seems to be the easiest way. There's an article <a href="">here</a> that describes how it can be done using your method and one more to my liking.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900