C++字符串分割

vector<string> vec;

stringstream ss(param);

string s;

while (ss >> s)

vec.push_back(s);

posted @ 2012-03-23 21:50  桥边红药  Views(161)  Comments(0)    收藏  举报