Hi,
I'm trying to copy a value in a vector to a string. The vector is also of string type, I'm trying to copy through the iterator.
for(iter = inputStr.begin(); iter != inputStr.end(); iter++){
string temp = inputStr.at(iter);
int count = 0;
for(int i = 0; i != temp.size(); i++){
while(temp[i] != 'h')
count++;
}
temp = temp.erase(0, count);
inputStr.at(iter) = temp;
}
Thanks