If you had something like this:
If the user enters inCode:int age; string firstname; cout << "Please enter in your age and first name:"; cin >> age >> firstname;
90 Nick
the code works fine.
But what if the user 'accidently' enters in their last name.
like this:
90 NickSmith
How would you throw away the "Smith" - assuming that everybody's name is only 4 letters long?
would you use an ignore()?