string split
std::vector split(const std::string& s, char delimiter){ std::vector tokens; std::string token; std::istringstream tokenStream(s); while (std::getline(tokenStream, token, delimiter)) { token.erase(std::remove(token.begin(), token.end(), ' '), token.end()); tokens.push_back(token); } return tokens;} int main(){ std::string missionRewardCnt = "5 | 10 | 18"; std::vector result = split(missionReward..
2018. 11. 21. 18:37