-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.h
More file actions
29 lines (25 loc) · 1.01 KB
/
main.h
File metadata and controls
29 lines (25 loc) · 1.01 KB
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
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#ifndef main_h
#define main_h
#ifndef airline_h
#include "airline.h"
#endif
void print_title();
void menu_display();
int space_remover(ifstream& in_stream);
void read_header(ifstream& in_stream, string& flightid, string& rows, string& cols);
void read_passenger(ifstream& in_stream, string& fname, string& lname, string& phone, string& seat, string& id);
//Should be implemented in the flight class, but good enough for now.
int check_passenger(vector<passenger>& passenger_list, int& id_check);
int id_checker();
//To be fully implemented once flight has been defined.
void data_save(ofstream& out_stream, vector<passenger>& passenger_list, string& flightid, string& row, string& col);
//Should also be implemented in the flight class, but will work for now
void display_info(vector<passenger> passenger_list);
void printGrid(const vector<vector<char>>& grid);
void display_seatmap(const seatmap map);
#endif