Hi
I'm trying to loop this
for(int i = 0; i <3; i++){
string a = "desc";
char counter1[10];
itoa(i,counter1,10);
a += counter1;// the name that should be used insted of
vector <double> a;
}
out put vectors with names of desc0, desc1 and desc2
how can I do that
thank you in advance
One way to have looping variable dependent vector identifiers might be to use a std::vector<std::unique_ptr<std::vector<double>> such that each element of this vector refers to a unique std::vector<double>: