-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.h
More file actions
47 lines (41 loc) · 706 Bytes
/
main.h
File metadata and controls
47 lines (41 loc) · 706 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
/**
* Header file for the Main C program
* @file main.h
* @author Pranav Kale
*/
#ifndef MAIN_H
#define MAIN_H
/**
* Enumeration for Class Types
*/
typedef enum {
FIRST,
PREMIUM,
ECONOMY
} Class;
/**
* Enumeration for any Special Requests for Client
*/
typedef enum {
NONE,
ANIMAL,
XTRAMEAL,
XTRASEAT,
VEGETARIAN,
VEGAN,
VETERAN,
OTHER
} SpecialRequest;
/**
* Struct to define the various elements of a flight booking
* Includes name, class, DOB, special requests
*/
typedef struct {
char first[20];
char last[20];
Class userClass;
char itineraryNumber[7];
char dateOfBirth[11];
SpecialRequest specialRequest;
} Booking;
#endif