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

TOP

返回列表