Sucesive 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
cin.ignore(somelargenumber); //Clears the stream so that it has to ask again.

Okay, that's not strictly speaking the proper way to do it, but...

-Albatross
Topic archived. No new replies allowed.