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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

clear screen

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Is there any function that clears the screen of output... someone told me that there is a clrscrn() in stdlib.h but it doesn't exist in any .h file :(
Any ideas?
 
There are more than one way infact:
use clrscr() (not clrscrn() ) defined in conio.h
print n no. of lines in a loop where n is no. of rows of your console for a pc no. of rows is 25.
There are more but these two are easiest way out.


Hope these help.
SwapSawe.:)
 
For more suggestions refer to this thread just click on it.
thread205-76828
U'll be flooded.
Regards,
SwapSawe.
 
By the way, clrscr is declared in conio.h John Fill
1c.bmp


ivfmd@mail.md
 
by the way, clrscr is declared in conio.h of borland's compillers. To clear screen, there is an OS dependent
system("cls"); for DOS and system("clear"); for Linux. John Fill
1c.bmp


ivfmd@mail.md
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top