标签:style blog http color os 2014
#include <iostream> #include <sstream> #include <string> using namespace std; int main() { string s("Somewhere down the road"); istringstream iss(s); while (iss) { string sub; iss >> sub; cout << "Substring: " << sub << endl; } system("pause"); }
效果图:
C++中如何split字符串(转),布布扣,bubuko.com
标签:style blog http color os 2014
原文地址:http://www.cnblogs.com/sweetculiji/p/3855545.html