C++ string split
In the C++, we can split a string with a delimiter as follows. #include #include #include #include std::vector splitString(const std::string &input, char delimiter) { std::vector res; std::stringstream ss(input); std::string temp; while (getline(ss, temp, delimiter)) { res.push_back(temp); } return res; } and we can use the helper function above like this. auto listOfInputSrc = splitString(reque..
2023.01.27