-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNode.h
33 lines (26 loc) · 808 Bytes
/
Node.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
#ifndef NODE_H
#define NODE_H
#include<iostream>
#include<string>
#include "Time.h"
#include "Date.h"
using namespace std;
class Node {
public:
// Data members
string Origin; //ciy of origin
Node* Destination; //a pointer pointing to the city of destination
int TicketPrice; // ticket Price for flight
string Airline; // name of Airline
int Hotel_Charg; // hotel charges of that country
Date DateOfTravel; // date of travel of flight
Time FlyingTime; // flying time of flight
Time LandingTime; // landing time of flight
Time Travel_Time; // total time of the flight
Time Transit_Time; // transit time between this flight and the next flight
bool p_check; // if path is valid p_check is true else false
// Methods
Node();
void show_data();
};
#endif