www.digitalmars.com         C & C++   DMDScript  

c++ - Succesive calls to cin fail

I have a C++ program that calls for user input (integer) at two different
points in the program (cin >>
variable1, cin >> variable2). The first input is successful.  The program then
"sails" right past the second
request without waiting for the user input.

I've checked the state of cin, I've used cin.clear() and cin.ignore(), after
the first input.  Nothing that I have
tried will make it pause for the second input.

Any help or suggestions?

Jordon Hirshon
Sep 12 2010