Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void AddAircraft();
- void ListAllAircraft();
- FlightSystem aircraft;
- int main() {
- AddAircraft();
- ListAllAircraft();
- return 0;
- }
- void AddAircraft() {
- aircraft.AddAircraft("FN 350", "Ryanair", "Plane", 500, 3000, "k7", 34);
- aircraft.AddAircraft("FL 890", "Ryanair", "Plane", 500, 3000, "k7", 34);
- }
- void ListAllAircraft() {
- for (int i = 0; i < aircraft.ListAllAircraft().size(); i++) {
- cout << aircraft.ListAllAircraft().at(i).GetAircraftType();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement