Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char answer;
- answer = 'm';
- while (true)
- {
- cout << "Stay? (10 gold) y/n\n";
- cout << ">";
- cin >> answer;
- cin.ignore(10,'\n');
- if (answer == 'y' || answer == 'n')
- break;
- }
- cout << endl
Advertisement
Add Comment
Please, Sign In to add comment