Thread: FAQ: clearing screen

  1. #1
    Unregistered
    Guest

    FAQ: clearing screen

    is there a command to clear the screen in a dos prompt running program? thanks a ton

  2. #2
    Registered User
    Join Date
    Oct 2001
    Posts
    104
    In Borland, it is clrscr()
    Visual C++ has no built in function to clear the screen, but you can use this to do that:
    http://cs.colgate.edu/APCSWeb/VC++ClearScr.htm
    Ilia Yordanov,
    http://www.cpp-home.com ; C++ Resources

  3. #3
    Registered User
    Join Date
    Aug 2001
    Posts
    47
    There's also the really slow unportable way:


    Code:
    system("cls");
    lol

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. clearing the screen
    By ssharish in forum C Programming
    Replies: 2
    Last Post: 02-01-2005, 09:00 PM
  2. clearing the screen
    By satory in forum C Programming
    Replies: 5
    Last Post: 10-23-2004, 06:51 AM
  3. i am not able to figure ot the starting point of this
    By youngashish in forum C++ Programming
    Replies: 7
    Last Post: 10-07-2004, 02:41 AM
  4. clrscr(); not clearing the screen
    By Noobie in forum C Programming
    Replies: 8
    Last Post: 05-01-2003, 01:44 PM
  5. Inline ASM and Screen Clearing
    By Wavering in forum C Programming
    Replies: 0
    Last Post: 12-08-2001, 06:03 AM