One cin.get() grabs the leftover newline (which remains after entering a number), and a second cin.get() will actually then wait for a keypress.
PS http://www.parashift.com/c++-faq-lite/input-output.html#faq-15.7
(why dont think work like on the tutorials - did people try out the programmes before putting them on?)
Don't be rude when it is you that doesn't understand the simple things.
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
You might also be entering your full name with a space.
Spaces give problems. So you might want to try using cin.getline() instead of just cin?
iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439