Thread: FAQ Clear screen command (C)

  1. #1
    Pain2k
    Guest

    Unhappy Clear screen command

    Your all gonna take the ........, but its a genuine question!, how do i clear the screen in C?, apart from \n\n\n\n\n\n\n\n

    Norris

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,656
    You mean you got past all the forum notices and links to the FAQ, and you still ask the question....
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Maybe if you shake it, side to side, like an etch-a-sketch...

    Quzah.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,656
    > Maybe if you shake it, side to side, like an etch-a-sketch.
    LOL - nice one
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #5
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,227
    step 1, turn off the monitor...

  6. #6
    Registered User
    Join Date
    Oct 2001
    Posts
    15

    clrscr in visual c

    Use
    #include <stdlib.h>

    system ("cls");

  7. #7
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765
    Throw the monitor out the window

    Advantages:
    Pretty fail-proof
    Releases your anger

    Disadvantages:
    No more monitor.
    If you forgot to unplug it, other computer peripherals might follow it in a racing frenzy
    You have to open the window and take the screen out (the mesh thingie that keeps bugs out.... supposedly...)
    (Note from webmaster: Not portable. Difficult to write code to throw monitor out window.)
    The world is waiting. I must leave you now.

  8. #8
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    >>> system ("cls");

    Then read the FAQ to find out why this is a bad idea.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

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, 08:36 AM
  3. Yet another clear screen thread :D
    By kermit in forum Linux Programming
    Replies: 2
    Last Post: 11-20-2003, 05:14 AM
  4. How to clear the screen?
    By Zopyrus in forum C++ Programming
    Replies: 8
    Last Post: 11-07-2003, 10:20 PM
  5. clear screen function probs
    By Unregistered in forum C Programming
    Replies: 10
    Last Post: 03-07-2002, 12:29 PM