split replace c++1 split replace c++ 출처 : http://blog.daum.net/lifemap/5474796 void trimleft(std::string& str, const char* ch) { str.erase(0, str.find_first_not_of(ch)); } void trimright(std::string& str, const char* ch) { str.erase(str.find_last_not_of(ch) + 1); } std::vector split(std::string& str, std::string separators ) { size_t n = str.length(); size_t start, stop; std::vector result; start = str.find_first_not_of(separators).. 2013. 7. 2. 이전 1 다음