i am now doing a Flight Reservation System using classes and file system ...
i know how to store data about passengers info into a file and store flight info into another file.
the problem now is:
Example of flight info:
From: US
To: Aust
Departure: 1200
Arrival: 1800
the flight info is saved in the flight.dat
Example of passenger info:
Name: Amy
Flight: US to Aust
the passenger info is saved in the passenger.dat.
Each flight can takes up to 20 passengers.
how am i suppose to reserved a place for Amy ?



LinkBack URL
About LinkBacks


