Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- using namespace std;
- int main()
- {
- int choice= 0;
- while( choice != 4)
- {
- cout<<"What would you like to do?"<<endl;
- cout<<"1. Buy Tickets."<<endl;
- cout<<"2. Remove Tickets."<<endl;
- cout<<"3. Print Receipt."<<endl;
- cout<<"4. Exit."<<endl;
- cout<<"Select (1, 2, 3, or 4)"<<endl;
- cin>>choice;
- switch (choice)
- {
- case 1:
- cout<<"1. Do Buy Tickets"<<endl;
- break;
- case 2:
- cout<<"2. Do Remove Tickets."<<endl;
- break;
- case 3:
- cout<<"3. Print Receipt."<<endl;
- break;
- case 4: // 4 Exit
- break;
- default:
- break;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement