Clear Screen function..

This is a discussion on Clear Screen function.. within the C++ Programming forums, part of the General Programming Boards category; Which function clears the screen? and what header do I have to include? I know of clrscr(); but I don't ...

  1. #1
    Registered User
    Join Date
    Mar 2002
    Posts
    51

    Clear Screen function..

    Which function clears the screen? and what header do I have to include?

    I know of clrscr(); but I don't know which header to include..
    is there any other function besides clrscr()?
    Which is the master, which is the student?

  2. #2
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571

    Re: Clear Screen function..

    Originally posted by Jez_Master
    Which function clears the screen? and what header do I have to include?

    I know of clrscr(); but I don't know which header to include..
    is there any other function besides clrscr()?
    You can use clrscr() by including the header file conio.h , thats console input/output. Also if you want DOS specific clear screen you can use system( "cls" ); but i'd recommend the conio.h version.

  3. #3
    Registered User xds4lx's Avatar
    Join Date
    Nov 2001
    Posts
    630
    Hmm he forgot to mention that clrscr() is implementation dependent and not supported by all compilers. I sugges before you post things in the future to use the search button b/c this topic has been asked more than I can count on this board and it really ........es me and others off to have to see it over and over so learn to read the board guide and also learn how to use the "search" button!
    "only two things are infinite, the universe and human stupidity, and im not sure about the former." - albert einstein

  4. #4
    Registered User
    Join Date
    Mar 2002
    Posts
    51
    Ok, my bad...I'm relatively new and didn't know I had that options..

    Search option,..hmm..note to self...
    Which is the master, which is the student?

  5. #5
    Registered User
    Join Date
    Mar 2002
    Posts
    203

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 03:07 AM
  2. Calling a Thread with a Function Pointer.
    By ScrollMaster in forum Windows Programming
    Replies: 6
    Last Post: 06-10-2006, 09:56 AM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 07:39 AM
  4. Clear Screen Function?
    By Punkture in forum C Programming
    Replies: 3
    Last Post: 05-05-2003, 10:25 PM
  5. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 06:06 PM

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