#include <iostream>
#include <string>
using namespace std;
int main()
{
int ruinEverything = 0;
while(ruinEverything == 0)
{
char choice;
cout << endl << ">";
cin >> choice;
cout << endl;
switch(choice)
{
case 'a':
cout << endl << "You selected 'a'." << endl;
break;
case 'r':
cout << endl << "You selected 'r'." << endl;
break;
case 'n':
cout << endl << "You ruined everything.";
ruinEverything = 1;
break;
default:
cout << endl << "I'm not looking for '" << choice << "'.";
}
}
}

Instead of the above happening, how do I get it to look at 'a' and ignore anything else that was typed after it, or tell the user to only enter one character?
An alternate solution lies in figuring out how to read two words but no more than that.
i.e. "move north"
where "move" elicits "where do you want to move?"
"move nroth" elicits "I can't move nroth."
and "move north salad" elicits "what the forget stop it"