Tarefa12/main.cpp
void fill_travel(vector<Travel>& travels, vector<Flight>& flights, string starting_point, unsigned long t_min, unsigned long t_max){
  for(unsigned int i=0; i< flights.size(); i++){
    if(flights[i].from == starting_point &&
       flights[i].take_off_time >= t_min &&
       flights[i].land_time <= t_max){
      Travel t;
      t.flights.push_back(flights[i]);
      travels.push_back(t);
    }
  }
}
/**
 * \fn void fill_travel(vector<Travel>& travels, vector<Flight>& flights, string starting_point, unsigned long t_min, unsigned long t_max)
 * \brief Fills the travels's vector with flights that take off from the starting_point.
 * This function might probably be improved.
 * \param travels A vector of travels under construction
 * \param flights All the flights that are available.
 * \param starting_point The starting point.
 * \param travels The list of possible travels that we are building.
 * \param t_min You must not be in a plane before this value (epoch).
 * \param t_max You must not be in a plane after this value (epoch).
 */
\fn void fill_travel(vector& travels, vector& flights, string starting_point, unsigned long t_min, unsigned long t_max)
\brief Fills the travels's vector with flights that take off from the starting_point.
This function might probably be improved.
\param travels A vector of travels under construction
\param flights All the flights that are available.
\param starting_point The starting point.
\param travels The list of possible travels that we are building.
\param t_min You must not be in a plane before this value (epoch).
\param t_max You must not be in a plane after this value (epoch).
\ fn void fill_travel ( vector& travels vector& flights string starting_point unsigned long t_min unsigned long t_max ) \ brief Fills the travels ' s vector with flights that take off from the starting_point . This function might probably be improved . \ param travels A vector of travels under construction \ param flights All the flights that are available . \ param starting_point The starting point . \ param travels The list of possible travels that we are building . \ param t_min You must not be in a plane before this value ( epoch ) . \ param t_max You must not be in a plane after this value ( epoch ) .
void fill_travel(vector<Travel>& travels, vector<Flight>& flights, string starting_point, unsigned long t_min, unsigned long t_max){
  for(unsigned int i=0; i< flights.size(); i++){
    if(flights[i].from == starting_point &&
       flights[i].take_off_time >= t_min &&
       flights[i].land_time <= t_max){
      Travel t;
      t.flights.push_back(flights[i]);
      travels.push_back(t);
    }
  }
}
void fill_travel ( vector < Travel > & travels , vector < Flight > & flights , string starting_point , unsigned long t_min , unsigned long t_max ) { for ( unsigned int i = 0 ; i < flights . size ( ) ; i ++ ) { if ( flights [ i ] . from == starting_point && flights [ i ] . take_off_time >= t_min && flights [ i ] . land_time <= t_max ) { Travel t ; t . flights . push_back ( flights [ i ] ) ; travels . push_back ( t ) ; } } }
\fn void fill_travel(vector<Travel>& travels, vector<Flight>& flights, string starting_point, unsigned long t_min, unsigned long t_max)
 \brief Fills the travels's vector with flights that take off from the starting_point.
\ fn void fill_travel ( vector<Travel > & travels vector<Flight > & flights string starting_point unsigned long t_min unsigned long t_max ) \ brief Fills the travels ' s vector with flights that take off from the starting_point .