#include <iostream> #include <string> #include <vector> std::vector<std::string> split(std::string str, char c) { int pos; std::string s(str); std::vector<std::string> tmp; while (!s.empty()) { if ((pos = s.find(c)) != s.npos) { tmp....