Tarefa12/main.cpp
void parse_alliance(vector<string> &alliance, string line){
  vector<string> splittedLine;
  split_string(splittedLine, line, ';');
  for(unsigned int i=0; i<splittedLine.size(); i++){
    alliance.push_back(splittedLine[i]);
  }
}
/**
 * \fn void parse_alliance(vector<string> &alliance, string line)
 * \brief This function parses a line containing alliances between companies.
 * \param alliance A vector of companies sharing a same alliance.
 * \param line A line that contains the name of companies in the same alliance.
 */
\fn void parse_alliance(vector &alliance, string line)
\brief This function parses a line containing alliances between companies.
\param alliance A vector of companies sharing a same alliance.
\param line A line that contains the name of companies in the same alliance.
\ fn void parse_alliance ( vector &alliance string line ) \ brief This function parses a line containing alliances between companies . \ param alliance A vector of companies sharing a same alliance . \ param line A line that contains the name of companies in the same alliance .
void parse_alliance(vector<string> &alliance, string line){
  vector<string> splittedLine;
  split_string(splittedLine, line, ';');
  for(unsigned int i=0; i<splittedLine.size(); i++){
    alliance.push_back(splittedLine[i]);
  }
}
void parse_alliance ( vector < string > & alliance , string line ) { vector < string > splittedLine ; split_string ( splittedLine , line , ' ' ) ; for ( unsigned int i = 0 ; i < splittedLine . size ( ) ; i ++ ) { alliance . push_back ( splittedLine [ i ] ) ; } }
\fn void parse_alliance(vector<string> &alliance, string line)
 \brief This function parses a line containing alliances between companies.
\ fn void parse_alliance ( vector<string > &alliance string line ) \ brief This function parses a line containing alliances between companies .