-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathReservationSystem.h
More file actions
49 lines (31 loc) · 980 Bytes
/
ReservationSystem.h
File metadata and controls
49 lines (31 loc) · 980 Bytes
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
39
40
41
42
43
44
45
46
47
48
49
/*
@author Saitcan Baskol
@studentid 21803589
*/
#include <iostream>
#include <string>
#include "Flight.h"
#include "Reservation.h"
using namespace std;
class ReservationSystem {
public:
ReservationSystem();
~ReservationSystem();
ReservationSystem(const ReservationSystem& rightVal);
ReservationSystem& operator=(const ReservationSystem& rightVal);
void addFlight( const int flightNo, const int rowNo, const int seatNo );
void cancelFlight( const int flightNo );
void showAllFlights();
void showFlight( const int flightNo );
int makeReservation( const int flightNo, const int numPassengers,
const int *seatRow, const char *seatCol );
void showReservation( const int resCode );
void cancelReservation( const int resCode );
int totalFlights;
Flight* flightArr;
Reservation* ticketArray;
int totalTickets;
};
/**
void cancelReservation( const int resCode );
*/