-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflightNode.h
40 lines (35 loc) · 1.13 KB
/
flightNode.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
#pragma once
using namespace std;
class flightNode {
public:
string date;
int carrierAirline;
string tailNum;
int carrierFlight;
int originAirport;
int originAirportSeq;
int originCity;
string origin;
int destAirport;
int destAirportSeq;
int destCity;
string dest;
int estDepart;
int actDepart;
int departDelay;
int arrTime;
int arrDelay;
bool operator==(const flightNode& rhs) const{
if (date != rhs.date || carrierAirline != rhs.carrierAirline
|| tailNum != rhs.tailNum || carrierFlight != rhs.carrierFlight
|| originAirport != rhs.originAirport || originAirportSeq != originAirportSeq
|| originCity != rhs.originCity || origin != rhs.origin
|| destAirport != rhs.destAirport || destAirportSeq != rhs.destAirportSeq
|| destCity != rhs.destCity || dest != rhs.dest
|| estDepart != rhs.estDepart || actDepart != rhs.actDepart
|| departDelay != rhs.departDelay || arrTime != rhs.arrTime
|| arrDelay != rhs.arrDelay)
return false;
return true;
}
};