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.
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.