Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool main()
- {
- cout<<"do you want to proceed(y or n)\n?";
- char answer = 0;
- cin >> answer;
- switch (answer){
- case 'y':
- return true;
- case 'n':
- return false;
- default:
- cout << "I'll take that for a no.\n";
- return false;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement