-
Notifications
You must be signed in to change notification settings - Fork 0
/
type.h
26 lines (20 loc) · 658 Bytes
/
type.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
#ifndef Type_H
#define Type_H
#include <iostream>
using namespace std;
//define struct flightRec
struct flightRec{
string origin;
int flightNum;
string destination;
int price;
//declare overloaded < operator for flightRec
//this function compares the destinations between two flightRec
bool operator< (const flightRec& rhs) const;
//declare overloaded == operator for flightRec
//this function compares the origins and destinations between two flightRec
bool operator== (const flightRec& rhs) const;
//declare overloaded << (insertion) operator for flightRec struct
friend ostream& operator<< (ostream& os, const flightRec& rhs);
};
#endif