返回列表 發帖
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. stringstream ss;
  4. int main()
  5. {
  6.     cin.sync_with_stdio(0);
  7.     cin.tie();
  8.     string str;
  9.     string str1="abc";
  10.     string str2="狗咬豬";
  11.     int a=12;
  12.     float b=3.456;
  13.     ss<<str1<<str2<<a<<b;
  14.     cout<<ss.str()<<endl;
  15.     ss>>str;
  16.     cout<<str;
  17.     return 0;
  18. }
複製代碼
hahahahahahahaha

TOP

返回列表