split 分割字符串
包含string头文件
string content = “afdag|fwagag|fgwaer|wgag|afs”;
std::vector<std::string>source;
boost::split(source,content,boost::is_any_of("|"));
split 分割字符串
包含string头文件
string content = “afdag|fwagag|fgwaer|wgag|afs”;
std::vector<std::string>source;
boost::split(source,content,boost::is_any_of("|"));