View Single Post
Old Apr 19th, 2007, 6:44 PM   #17
357mag
Hobbyist Programmer
 
Join Date: Mar 2005
Posts: 148
Rep Power: 4 357mag is on a distinguished road
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.
357mag is offline   Reply With Quote