Clears text mode window
Declaration:
void clrscr(void);
Remarks:
clrscr clears the current text window and places the cursor in the upper
left-hand corner (at position 1,1).
Return Value:
None
Example:
#include <conio.h>
int main(void)
{
int i;
clrscr();
for (i = 0; i < 20; i++)
cprintf("%d\r\n", i);
cprintf("\r\nPress any key to clear screen");
getch();
clrscr();
cprintf("The screen has been cleared!");
getch();
return 0;
}
1 comments:
I like your post a lot! You should write some more on this!Great job coming with such terrific post!
alchemist
www.inspgift.com
Post a Comment