Advertisement
David_Mc7

Working code example

Nov 3rd, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. void AddAircraft();
  2. void ListAllAircraft();
  3.  
  4. FlightSystem aircraft;
  5.  
  6. int main() {
  7.  
  8. AddAircraft();
  9. ListAllAircraft();
  10.  
  11. return 0;
  12. }
  13.  
  14. void AddAircraft() {
  15.  
  16. aircraft.AddAircraft("FN 350", "Ryanair", "Plane", 500, 3000, "k7", 34);
  17. aircraft.AddAircraft("FL 890", "Ryanair", "Plane", 500, 3000, "k7", 34);
  18. }
  19.  
  20. void ListAllAircraft() {
  21.  
  22. for (int i = 0; i < aircraft.ListAllAircraft().size(); i++) {
  23.  
  24. cout << aircraft.ListAllAircraft().at(i).GetAircraftType();
  25. }
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement