im writing a simple console program and i want this simple console program to stop at certain points and wait for the user to hit enter.
this simple task is accomplished by me putting the following:
the only problem is, the code wont stop there. but if i put getch() in there twice, like so:Code:cout << "Press enter to continue..."; getch();
it works. whats going on here, and how do i get getch() to work like its supposed to?Code:cout << "Press enter to continue..."; getch(); getch();