コンテンツに合成ベクトル、文字列の出力

1  文字列 merge_vector(ベクトル< ストリング > dp_scpe_all)
 2  {
 3。     // ベクトルの内容をマージ
4。     文字列new_dp_scpe;
 5      INT、M = 0、M <dp_scpe_all.size(); M + 。6      {
 7。         // 文字列の連結
8          文字列 BBL = dp_scpe_all [M];
 9。          new_dp_scpe = new_dp_scpe + BBL;
 10          IF(!dp_scpe_all.size M =() - 1 。11          {
 12であります             + = new_dp_scpe new_dp_scpe " " ;
 13である        }
 14     }
 15 リターンnew_dp_scpe;
 16 }
 17 18である19。シーザーLushangゆう
 20である 2019年11月12日         
 
 

 

おすすめ

転載: www.cnblogs.com/nxopen2018/p/11841177.html