Advertisement
David_Mc7

Non working code example

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