c++ newbie questions

This is a discussion on c++ newbie questions within the C++ Programming forums, part of the General Programming Boards category; hi! first of all - excuse my english i'm german... i've just startet programming in c++ (i use ms vc++ ...

  1. #1
    Registered User dune911's Avatar
    Join Date
    Sep 2001
    Posts
    140

    Question c++ newbie questions

    hi!
    first of all - excuse my english i'm german...

    i've just startet programming in c++ (i use ms vc++ 5.0 learning edition) and now i have the following problems:

    1) i need something like the "pause" function in batch-file programming in ms-dos. a "press-any-key-to-continue"-function. is this possible in c++? (program runs in dos)

    2) how about a clearscreen-function? or is printing n"; fourty times the only was to clear the screen and start at the top?

    thank you!
    dune911

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    If you are using VC++ then you are not running under DOS! You are running a Windows Console Application which may look like a DOS window but is not. It is programmed differently. VC++ is a 32 bit compiler, you cannot write a DOS application with VC.

    Pausing your program and clearing the screen in a console app. are both described in the Board FAQ, (link at the bottom of the page).
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  3. #3
    Registered User dune911's Avatar
    Join Date
    Sep 2001
    Posts
    140

    thank you! -nt-

    -nt-

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Memory handling functions (newbie questions)
    By PaulBlay in forum C Programming
    Replies: 6
    Last Post: 03-10-2009, 07:37 AM
  2. newbie questions
    By raptorx in forum C Programming
    Replies: 2
    Last Post: 10-10-2007, 10:30 PM
  3. Im a newbie to C and i have some questions
    By pave1104 in forum C Programming
    Replies: 5
    Last Post: 07-05-2006, 10:48 PM
  4. Real newbie with VC6 questions
    By MagiZedd in forum Windows Programming
    Replies: 8
    Last Post: 10-15-2001, 09:27 PM
  5. newbie questions again
    By dune911 in forum C++ Programming
    Replies: 2
    Last Post: 09-14-2001, 03:43 PM

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