Click here to Skip to main content
15,569,845 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?

Posted
Updated 2-Feb-11 16:23pm
v3

clrscr() is correct one, Which defination is in "conio.h" file.
 
Share this answer
 
Have you tried system("cls")
 
Share this answer
 
Comments
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="http://support.microsoft.com/kb/99261">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