The combined vector in the content, the output of a string

. 1  String merge_vector (vector < String > dp_scpe_all)
 2  {
 . 3      // merge the contents of the vector 
. 4      String new_dp_scpe;
 . 5      for ( int m = 0 ; m <dp_scpe_all.size (); m ++ )
 . 6      {
 . 7          // string concatenation 
. 8          String BBl = dp_scpe_all [m];
 . 9          new_dp_scpe = new_dp_scpe + BBl;
 10          IF (! dp_scpe_all.size m = () - . 1 )
 . 11          {
 12 is             + = new_dp_scpe new_dp_scpe " , " ;
 13 is          }
 14      }
 15      return new_dp_scpe;
 16  }
 . 17  
18 is  
. 19  Caesar Lushang Yu
 20 is November 12, 2019

 

Guess you like

Origin www.cnblogs.com/nxopen2018/p/11841177.html