Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. Vector<Flight*> * searchFlight(string destination)
  2. {
  3.     Vector<Flight*> *flights_to_dest = new Vector<Flight*>();
  4.     for (int d = 0; d < n; d++)
  5.     {
  6.         if (destination == flights[d].destination)
  7.         {
  8.             flights_to_dest.push_back(flights[d]);
  9.         }
  10.     }
  11.     return flights_to_dest ;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement