c++ newbie questions
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?
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).
thank you! -nt-