-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
38 lines (33 loc) · 886 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#include <iostream>
#include "ticketsystem.h"
using namespace std;
int main() {
ticketsystem system;
int choice;
do {
cout << "\nMovie Ticket Booking System\n";
cout << "1. Display Movies\n";
cout << "2. Book Tickets\n";
cout << "3. Cancel Tickets\n";
cout << "4. Exit\n";
cout << "Enter your choice: ";
cin >> choice;
switch (choice) {
case 1:
system.displaymovies();
break;
case 2:
system.reserveticket();
break;
case 3:
system.cancelticket();
break;
case 4:
cout << "Exiting...\n";
break;
default:
cout << "Invalid choice. Please try again.\n";
}
} while (choice != 4);
return 0;
}