stringstream的基本操作 #include<bits/stdc++.h> using namespace std; int main() { string s = "123"; stringstream ss(s);//s作为初值 string t = ss.str(); //ss