zoukankan      html  css  js  c++  java
  • 合并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日
  • 相关阅读:
    GDUFE ACM-1050
    hdu-2020
    hdu-2055
    hdu-2734
    GDUFE ACM-1145
    GDUFE ACM-1127
    GDUFE ACM-1126
    GDUFE ACM-1125
    GDUFE ACM-1124
    GDUFE ACM-1123
  • 原文地址:https://www.cnblogs.com/nxopen2018/p/11841177.html
Copyright © 2011-2022 走看看