合並vector里的內容,輸出一個string


 1 string merge_vector(vector<string> dp_scpe_all)
 2 {
 3     //合並vector里的內容
 4     string new_dp_scpe;
 5     for (int m = 0; m < dp_scpe_all.size(); m++)
 6     {
 7         //字符串拼接
 8         string BB1 = dp_scpe_all[m];
 9         new_dp_scpe = new_dp_scpe + BB1;
10         if (m != dp_scpe_all.size() - 1)
11         {
12             new_dp_scpe = new_dp_scpe + ",";
13         }
14     }
15     return new_dp_scpe;
16 }
17 
18 
19 Caesar盧尚宇
20 2019年11月12日

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM