vector<Info> final; vector<Info>::iterator col; vector<string>::iterator coll; coll = nameVector.begin(); for (col = vec.begin(); col != vec.end(); col++) { (*col).setName(*coll); //this line coll++; final.push_back(*col); }
coll
vec
nameVector
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)