Hello everyone!
I am programming a vector which stores a name and a number.
typedef pair<int,string> Users_Pair;
vector<Users_Pair> Users_Name;
And the vector expands and contracts through out the life of the program. But when I use erase all elements above the one being erased loose their string? I am guessing its to do with the memory address or pointer? I thought char* where the ones which needed that?...
Any help or guidance would be much appreciated!
Thank you in advance!
will,