c++ - How do I create a vector using the data from the vector -


i manage insert values range vector, in range vector have data rangea, rangeb, rangec..

using data, want create vector range under block vector, how supposed go it?

vector <string> range; for(int i=0;i<range.size();i++) {     cout<<"range: "<<range[i]<<endl;     vector <string> block[i];                  <<<<<<< } 

output:

range: rangea

range: rangeb

range: rangec

thanks in advance!

vector <string> range; for(int i=0;i<range.size();i++) {     cout<<"range: "<<range[i]<<endl;      // create vector of size     // each element of default      // value "default"     vector <string> block(i,string("default"));  } 

Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -