Clear screen command?

This is a discussion on Clear screen command? within the C++ Programming forums, part of the General Programming Boards category; is there a clear screen command?...

  1. #1
    Flash Animator, OF DOOOOM bluehead's Avatar
    Join Date
    Nov 2001
    Posts
    269

    Clear screen command?

    is there a clear screen command?
    Code:
    #if _emo
      #define stereo_type_i_dislike
    #endif

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    Read the FAQ.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  3. #3
    Intranasal Heroin User Xterria's Avatar
    Join Date
    Sep 2001
    Location
    Buffalo, NY
    Posts
    1,035
    Code:
    #include <conio.h>
    #include <iostream.h>
    int main(void)
    {
         cout <<"The Screen is not cleared. Press any key." << endl;
         getch();
         clrscr(); //CLEAR THE SCREEN!!!
         cout << "Woah! The other text isn't there anymore. The Screen has been cleared." << endl;
    return(0);
    }
    obviously clrscr() is the clearing function. Include conio.h.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting a clear screen...
    By Finchie_88 in forum C++ Programming
    Replies: 13
    Last Post: 09-03-2004, 05:38 PM
  2. Clear Screen Again!!!
    By trang in forum C Programming
    Replies: 3
    Last Post: 12-13-2003, 07:36 AM
  3. Yet another clear screen thread :D
    By kermit in forum Linux Programming
    Replies: 2
    Last Post: 11-20-2003, 04:14 AM
  4. How to clear the screen?
    By Zopyrus in forum C++ Programming
    Replies: 8
    Last Post: 11-07-2003, 09:20 PM
  5. clear screen code, can't get it to work
    By Unregistered in forum C++ Programming
    Replies: 11
    Last Post: 01-25-2002, 12:38 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21