//C++ split
istringstream strs(str);
vector<string> words;
string word;
while(strs>>word){
words.push_back(word);
}
C++ 使用空格split
最新推荐文章于 2024-02-02 23:11:09 发布
//C++ split
istringstream strs(str);
vector<string> words;
string word;
while(strs>>word){
words.push_back(word);
}