Problem clearing screen

This is a discussion on Problem clearing screen within the C++ Programming forums, part of the General Programming Boards category; I know clrscr(); clears the screen, but for some reason it's giving me an error. Here's the context: Code: int ...

  1. #1
    Señor Member
    Join Date
    Jan 2002
    Posts
    561

    Unhappy Problem clearing screen

    I know clrscr(); clears the screen, but for some reason it's giving me an error. Here's the context:
    Code:
    int main(int argc, char *argv[])
    {
       while (!(namepw())){
          clrscr();
       }
       
       cout << endl;
       return 0;
    }
    I'm using Visual C++ 6, and I included conio.h. Whats wrong?

  2. #2
    Registered User C_Coder's Avatar
    Join Date
    Oct 2001
    Posts
    523
    Visual C++ 6 doesn't have clrscr, so you'll have to use system("cls") or use a loop to print a load of newlines.
    And if I was you I would delete that post before Salem or Quazh reads it.
    Last edited by C_Coder; 02-10-2002 at 02:07 PM.

  3. #3
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    FAQ If you look around FAQ somewhere FAQ then you should FAQ be able to learn FAQ how to write clrscr() FAQ on your own FAQ that works with MSVC++ FAQ FAQ FAQ.

    -Prelude
    My best code is written with the delete key.

  4. #4
    Registered User C_Coder's Avatar
    Join Date
    Oct 2001
    Posts
    523
    You can add Prelude to that list as well.

    I didn't mean to forget you had FAQ fetish as well Prelude.
    LOL

  5. #5
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    FAQs turn me on, more people need to feel the kind of rush that reading a FAQ gives you. Besides, more people should read them so I don't have to type as much.

    -Prelude
    Last edited by Prelude; 02-10-2002 at 02:31 PM.
    My best code is written with the delete key.

  6. #6
    Banned frenchfry164's Avatar
    Join Date
    Oct 2001
    Posts
    1,552
    How much would the learning edition of Visual C++ 6 cost?

  7. #7
    Señor Member
    Join Date
    Jan 2002
    Posts
    561
    VC6 standard -> $109

  8. #8
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    learning edition of Visual C++ 6 cost?
    It comes free with some books. It definately comes with Deitel and Deitels C++ How to Program. That books about £30 in the UK.
    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

  9. #9
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >It definately comes with Deitel and Deitels C++ How to Program.
    Well I should hope so, I bought both Stroustrup and Petzold for less than Deitel and Deitel. Either it's a superb book, or it's way overpriced. $72 American :P

    -Prelude
    My best code is written with the delete key.

  10. #10
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    Either it's a superb book, or it's way overpriced. $72 American
    Its both! Especially if you are a beginner. I didn't know it was that dear over on your side of the water.Its the only book on c++ my local bookshop stocks and its about £30 so thats what $50. For a good book and a good compiler thats not a lot of money. You wouldn't think twice about paying that for Quake4 or similar would you?
    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

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 02:51 PM
  2. Feedback: Functional Specification Wording
    By Ragsdale85 in forum C++ Programming
    Replies: 0
    Last Post: 01-18-2006, 03:56 PM
  3. Clearing the screen
    By wbeasl in forum C Programming
    Replies: 3
    Last Post: 10-10-2003, 04:39 AM
  4. clearing the screen
    By kas2002 in forum Game Programming
    Replies: 3
    Last Post: 07-02-2002, 07:21 PM
  5. Clearing the screen in a dos console window...
    By Unregistered in forum C++ Programming
    Replies: 13
    Last Post: 02-15-2002, 03:15 AM

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