So I am trying to allow a user to make a selection but Im having issue. the following lines 

```
cout << "\nWhat would you like to do? " << endl
    << "(1) Display the entire List" << endl
    << "(2) to exit" << endl;

getline(cin,answer);
answerint=stoi(answer);
switch (answerint) {
    case 1:
        showLIST(myLIst);
        break;
    case 2:
        return;
    default:
        cout << "\nPlease choose from the list";
   }

```

So this works fine if the user chooses a integer, but it barfs if a character is received. How can I make this less breakable?