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

TOP

返回列表