Boost.String Algorithmã«ããsplit便å©ã§ããã ä»ã¾ã§èªåã§ä½ã£ã¦ã¾ããã #include <iostream> #include <vector> #include <string> #include <boost/algorithm/string.hpp> #include <boost/foreach.hpp> #define foreach BOOST_FOREACH using namespace std; using namespace boost::algorithm; int main() { string s = "a b c"; vector<string> result; split(result, s, boost::is_space()); // ã¹ãã¼ã¹ã§åºåã foreach (const string& item, result)
{{#tags}}- {{label}}
{{/tags}}