convert int vector to string vector
int convert_int_vector_to_string_vector( const vector<int> & vn, vector<string> & vs )
the number of converted items
EX1
void convert_int_vector_to_string_vector_ex1() { vector<string> strVec; vector<int> nVec = {1,0,3.123,-2,10,255,1024,8}; int nRet = convert_int_vector_to_string_vector(nVec, strVec); if(nRet) { printf("%d items converted :\n" , nRet); for(int ii = 0; ii < strVec.GetSize() ; ii++) printf("%s\t" , strVec[ii]); printf("\n"); } else printf("Convert failed"); }
convert_string_vector_to_int_vector
origin.h