I'm just beginning C++, so don't get mad at me if the answer is obvious
I would like to know if there is another way to keep a program going (possibly until a certain key is hit) than using a cin.get() command. Any solutions? -Daniel
getch() won't work as the compiler will say "implicit declaration of function 'int getch(...)'". I've been using getchar(). This works most of the time, but no guarantees that a pause will always be (en)forced. And system("PAUSE" is a DOS command that will do the job, unless you're looking for no further output shown, but will show "Press any key to continue...". Anybody else have any more ideas?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.