Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I clear the screen?

Status
Not open for further replies.

Ikiok

Programmer
May 6, 2003
1
US
I know that there is a clrscr() in Borland, but I do not know what VC++ has?
Thanx for your help...
 
if u r developing a win32 console app then simply include conio.h n use clrscr() in ur function.

#include <conio.h>

void main(void)
{
printf(&quot;hi world!!!&quot;); // prints the str on console
getch(); // pauses until u press a key
clrscr(); // not to mention what it does:)
getch();
}

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top