Long time progger, C++ newbie

This is a discussion on Long time progger, C++ newbie within the C++ Programming forums, part of the General Programming Boards category; I have been programming for a while now but just moved on to c++ I am teahing myself and there ...

  1. #1
    Registered User
    Join Date
    Jun 2004
    Posts
    6

    Long time progger, C++ newbie

    I have been programming for a while now but just moved on to c++ I am teahing myself and there are things the book I have are not telling me, simple commands and such, so if anyone would be so kind as to answer these few questions:

    1.How do I clear the screen of text, I know of clear() and clrscr() but cant seem to get them to work. I was thinking that another library had to be included for that but if so I dont know which one.

    2.I am also looking for a couple keypress routines, one that does not pause and waits for user input, and one that does without pushing enter.

    Well actually that all I can think of right now but I will have more noob wuestions in time.

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    1) Clearing the screen is a system dependent operation. Nothing standard exists to do it, so you'll have to be more specific about your system and compiler.

    2) Keyboard control is a system dependent operation. Nothing standard exists to do it, so you'll have to be more specific about your system and compiler.

    My best code is written with the delete key.

  3. #3
    Registered User
    Join Date
    Jun 2004
    Posts
    6
    I am running windows xp, and using visual c++ 6.0...
    Last edited by SSC384; 06-26-2004 at 06:39 AM.

  4. #4
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    Clear the screen. For the keyboard routines, you probably want kbhit and getch/getche in <conio.h>. VC++ supports those, so you don't have to write them yourself.
    My best code is written with the delete key.

  5. #5
    Registered User
    Join Date
    Jun 2004
    Posts
    6
    All right that should be all I need for that for now, thanks.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Merge and Heap..which is really faster
    By silicon in forum C++ Programming
    Replies: 2
    Last Post: 05-10-2005, 04:06 PM
  2. Replies: 3
    Last Post: 03-21-2004, 05:02 PM
  3. Knight's Tour Recursion Problem
    By thephreak6 in forum C++ Programming
    Replies: 1
    Last Post: 10-14-2003, 09:18 AM
  4. Nero CD recording take long time
    By Eagle16 in forum A Brief History of Cprogramming.com
    Replies: 34
    Last Post: 11-15-2002, 04:49 PM
  5. I apologize. Good bye.
    By doubleanti in forum A Brief History of Cprogramming.com
    Replies: 14
    Last Post: 05-03-2002, 06:51 PM

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