Professional Documents
Culture Documents
Description:
This C++ program simulates a basic airline reservation system. It offers the following functionalities:
Key Features:
Flight Management:
o Stores flight information (flight number, departure city, departure time, arrival
city, arrival time).
o Maintains separate lists of flights departing from and arriving at each city.
o Allows searching for flights based on various criteria (e.g., departure city, arrival
city, flight number).
Route Finding:
o Implements Dijkstra's algorithm to find the shortest path between two cities based
on flight travel times.
Reservation Management:
Data Display:
Data Structures:
FlightType: Stores details about individual flights (flight number, departure city, arrival city,
departure time, arrival time).
RouteType: Represents a route, including flight numbers, number of hops, and day of travel.
ReadFlightData: Reads flight data from a source (not shown in the code).
DisplayShortestPath(startCity, endCity): Finds the shortest path between two cities using
Dijkstra's algorithm.
FindRoute(startCity, endCity, route): Finds a route between two cities, considering both
direct and connecting flights.
Main Menu:
Guides users through available options, allowing them to interact with the system's features
3. The program will prompt you with options for various actions.
4. Follow the prompts and enter the required information to perform the desired tasks.
Future Enhancements: