Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Borland C++ 2.x ( with Turbo C ) - <b>clrscr() clears screen</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 clrscr()                Clears Screen

 #include   <conio.h>

 void       clrscr(void);

    clrscr() erases everything in the current text window. The cursor is
    placed in the upper left corner at coordinates (1,1).

       Returns:     Nothing.

   Portability:     IBM PC and compatibles only.

   -------------------------------- Example ---------------------------------
    The following statements fill the screen with characters, then clear
    the screen.

           #include <conio.h>

           main()
           {
               int x, y;

               for (y = 0; y < 20; y++) {
                   for (x = 65; x < 91; x++)
                       printf("%c",x);
                   printf("\n");
               }
               getch();
               clrscr();
           }

See Also: clreol() delline() window()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson