Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while ((userInput != "r") || (userInput != "p" || (userInput != "R") || (userInput!= "P")) {
- cout << "Please enter a valid option" << endl;
- cin >> userInput;
- }
- while (userInput != "r") {
- cout << "Please enter a valid option" << endl;
- cin >> userInput;
- }
Add Comment
Please, Sign In to add comment