Guest User

Untitled

a guest
Sep 23rd, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.66 KB | None | 0 0
  1. do
  2.     {
  3.         switch(tolower(choice))
  4.         {
  5.         case 's':{stand1.SoldOneDog(); break;}
  6.         case 'd':{stand1.displayData(); break;}
  7.         case 'q':{cout << "\nQuit? (Y/N)\n";
  8.                   cin >> quit;
  9.                   cout << "\n";
  10.                   if( tolower(quit) == 'y' )
  11.                   {
  12.                       return 0;
  13.                   }
  14.                   else if (tolower (quit) == 'n' )
  15.                   {
  16.                       break;
  17.                   }        
  18.                  }
  19.         default:{
  20.                     cout << "\nNone of the commands are recognizable, check your spelling\n";
  21.                 }
  22.         }
Add Comment
Please, Sign In to add comment