boolStatus = true; do { cout << "Please enter whether this student is in-state (i/I), out-of-state (o/O) or qualified graduate (g/G)?" << endl; cin >> status; status = tolower(status); if ('i' == status || 'o' == status || 'g' == status) boolStatus = false; } while( boolStatus );