int number;
char letter;
cout << "\nEnter a number\n";
cin >> number;
cout << "\nEnter a letter\n";
cin >> letter;
cout << "\nThanks!";
Let's say I had 5 of these questions lined up, it seems the user could just type something like "1 a 2 3 4" on the first question and fill them all out at once. Likewise, how do I stop the user from simply entering 'b' for the first question and skipping the number all-together?