Tarefa12/main.cpp
void split_string(vector<string>& result, string line, char separator){
  while(line.find(separator) != string::npos){
    size_t pos = line.find(separator);
    result.push_back(line.substr(0, pos));
    line = line.substr(pos+1);
  }
  result.push_back(line);
}
/**
 * \fn void split_string(vector<string>& result, string line, char separator)
 * \brief This function split a string into a vector of strings regarding the separator.
 * \param result The vector of separated strings
 * \param line The line that must be split.
 * \param separator The separator character.
 */
\fn void split_string(vector& result, string line, char separator)
\brief This function split a string into a vector of strings regarding the separator.
\param result The vector of separated strings
\param line The line that must be split.
\param separator The separator character.
\ fn void split_string ( vector& result string line char separator ) \ brief This function split a string into a vector of strings regarding the separator . \ param result The vector of separated strings \ param line The line that must be split . \ param separator The separator character .
void split_string(vector<string>& result, string line, char separator){
  while(line.find(separator) != string::npos){
    size_t pos = line.find(separator);
    result.push_back(line.substr(0, pos));
    line = line.substr(pos+1);
  }
  result.push_back(line);
}
void split_string ( vector < string > & result , string line , char separator ) { while ( line . find ( separator ) != string :: npos ) { size_t pos = line . find ( separator ) ; result . push_back ( line . substr ( 0 , pos ) ) ; line = line . substr ( pos + 1 ) ; } result . push_back ( line ) ; }
\fn void split_string(vector<string>& result, string line, char separator)
 \brief This function split a string into a vector of strings regarding the separator.
\ fn void split_string ( vector<string > & result string line char separator ) \ brief This function split a string into a vector of strings regarding the separator .