|
So when I enter in the first integer, followed by the Enter key neither one of those actions has any bearing or relation to the first cin.get(). When I enter in the second integer, followed by the Enter key, the first cin.get() processes the Enter keystroke, and then when the program continues on down the page it stops at the second cin.get() and that is what causes the window to stay open, that is until I hit a final Enter key to close the window. That must be how it works.
|