1234
while ( cin >> answer && ! ('a'==answer||...) ) { cout << "You must answer one of a, b, c, or d. Try again:" << endl; }