> clrscr<CONIO.H> ~ Online tutorial

clrscr


 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;
 }

Please Give Us Your 1 Minute In Sharing This Post!
Please Give Us Your 1 Minute In Sharing This Post!
SOCIALIZE IT →
FOLLOW US →
SHARE IT →
Powered By: BloggerYard.Com

1 comments:

Anonymous said...

I like your post a lot! You should write some more on this!Great job coming with such terrific post!


alchemist
www.inspgift.com