Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Vector<Flight*> * searchFlight(string destination)
- {
- Vector<Flight*> *flights_to_dest = new Vector<Flight*>();
- for (int d = 0; d < n; d++)
- {
- if (destination == flights[d].destination)
- {
- flights_to_dest.push_back(flights[d]);
- }
- }
- return flights_to_dest ;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement