Thread: Clear Screen Again!!!

  1. #1
    Registered User
    Join Date
    Dec 2003
    Posts
    12

    Clear Screen Again!!!

    I know this topic has already been touched on, but I am still curious.

    I am new to C and am writing a basic program for a school assignment. I would like to know if there is a function to clear the screen? I am using Windows 2000 and Visual C++ compiler.

    I basically want to clear the screen after accepting input from the keyboard. First off, I have a menu on the screen asking the user to choose either 1, 2, or 3.

    After the user provides input, I want to clear the screen and display some output.

    Is there a way to do that? I have tried everything and nothing seems to work.

    Please help.
    Regards,
    Trang

  2. #2
    Been here, done that.
    Join Date
    May 2003
    Posts
    1,164
    Yes it's been touched on -- in great detail. Search thru the posts, look at the FAQs. They will explain all!
    Definition: Politics -- Latin, from
    poly meaning many and
    tics meaning blood sucking parasites
    -- Tom Smothers

  3. #3
    Registered User
    Join Date
    Dec 2003
    Posts
    12

    Thank you so much!!

    Thanks for your help!! Like I said, I'm new to this forum and C programming. I just registered to this forum half an hour ago, so I wasn't familiar to all of its features.

    I ended up searching through the posts and found an answer in the faqs.

    I used the last function on the very bottom, which worked!! All the top options didn't work at all, b/c the compiler I use didn't contain those particular libraries.

    I guess I kind of feel stupid to bring up the clear screen thing again. I'm sure you've heard it millions of times.

    Well, thanks again!!!
    Regards,
    Trang

  4. #4
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >I'm sure you've heard it millions of times.
    Code:
    ++clear_screen_question;
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Clear Screen in C++ console
    By ay_okay in forum C++ Programming
    Replies: 9
    Last Post: 12-21-2004, 04:05 AM
  2. CLear Screen Routine
    By AQWst in forum C++ Programming
    Replies: 4
    Last Post: 12-13-2004, 08:24 PM
  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. Getting a clear screen...
    By Finchie_88 in forum C++ Programming
    Replies: 13
    Last Post: 09-03-2004, 05:38 PM
  5. Yet another clear screen thread :D
    By kermit in forum Linux Programming
    Replies: 2
    Last Post: 11-20-2003, 05:14 AM