I am at the stage of storing my strings into a vector, could use some help
Please.
Also once i have my two lists of vectors is there a way to compare the two vectors together so i know which elements to pop_
1 2 3 4 5 6
void openTagStow(string hold, vector<string>& myVector) {
myVector.insert(myVector.begin(),hold);
cout << myVector.begin << endl;// error is right here, not sure how it is suppose to work
}
kbw - i added () oginally but got an error stating - no operator "<<" mathes these operands
Kevin C - yes i want to compare the elements of each vector at a time : vector1 will contain "Hello" and if vector 2 contains "/Hello" then i want to pop both elements off
It should return true if vector 'vec' contains "Hello", and false otherwise. Post the code here, and then we can comment on it and give you further instructions.