📅  最后修改于: 2022-03-11 14:44:53.864000             🧑  作者: Mango
#include
#include
using namespace std;
int main() {
stringstream ss("abc gg rrr ff");
string s1, s2;
ss >> s1;
getline(ss, s2); //get rest of the string!
cout << s1 << endl;
cout << s2 << endl;
return 0;
}