-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInput.h
54 lines (42 loc) · 1.02 KB
/
Input.h
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
50
51
52
53
54
/****************************************************************
FILE: Input.h
AUTHOR: Tommy Deng
s199762338
PURPOSE: Handles getting user input for common variables.
****************************************************************/
#ifndef INPUT_H
#define INPUT_H
#include <iostream>
#include "Plane.h"
using namespace std;
class Input
{
public:
// Default constructor
Input();
// Destructor
~Input();
// sets reservation data
void setReservation(vector<Plane*> *plane,
int flightId,
int seatId,
string firstName,
string lastName,
string ssStreet,
string phone,
string classType,
string from,
string toCity,
string toCountry,
string drink,
string meal);
// get common user inputs
// prompts the user to a value and verifies validity
int flightId(int numPlanes);
int seatId(const vector<Plane*> *plane, int flightId);
string drink();
string meal();
string boardingPass();
int destinationChoice(int numPlanes);
};
#endif // !INPUT_H