Define a split string function to ...
| 144 | |
| 145 | // Define a split string function to ... |
| 146 | static std::vector<std::string> split_string(const std::string& input, char delimiter) { |
| 147 | std::vector<std::string> tokens; |
| 148 | std::istringstream stream(input); |
| 149 | std::string token; |
| 150 | while (std::getline(stream, token, delimiter)) { |
| 151 | tokens.push_back(token); |
| 152 | } |
| 153 | return tokens; |
| 154 | } |
| 155 | |
| 156 | int main(int argc, char ** argv) { |
| 157 | std::setlocale(LC_NUMERIC, "C"); |