Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- do
- {
- switch(tolower(choice))
- {
- case 's':{stand1.SoldOneDog(); break;}
- case 'd':{stand1.displayData(); break;}
- case 'q':{cout << "\nQuit? (Y/N)\n";
- cin >> quit;
- cout << "\n";
- if( tolower(quit) == 'y' )
- {
- return 0;
- }
- else if (tolower (quit) == 'n' )
- {
- break;
- }
- }
- default:{
- cout << "\nNone of the commands are recognizable, check your spelling\n";
- }
- }
Add Comment
Please, Sign In to add comment