返回列表 發帖
本帖最後由 梁和雋 於 2016-1-15 17:13 編輯
  1. #include<iostream>
  2. #include<sstream>
  3. #include<cstdlib>
  4. using namespace std;
  5. int main()
  6. {
  7.     stringstream str;
  8.     string str1="123";
  9.     string str2="456";
  10.     str<<str1<<str2;
  11.     cout<<str.str()<<endl;
  12.     system("pause");     
  13.     return 0;   
  14. }
複製代碼
http://fs-old.mis.kuas.edu.tw/~s1102137106/music/

TOP

返回列表