Member_2_99151
asked on
How do I remove an entry from a vector <CString> if I know it's index?
Hi all,
I have the following :
vector<CString> myVar;
myVar.push_back("A");
myVar.push_back("B");
myVar.push_back("C");
if I want to remove B by its ID, how do I do it?
myVar.RemoveAt(1);
doesn't exist :-)
Thanks
James
I have the following :
vector<CString> myVar;
myVar.push_back("A");
myVar.push_back("B");
myVar.push_back("C");
if I want to remove B by its ID, how do I do it?
myVar.RemoveAt(1);
doesn't exist :-)
Thanks
James
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
right zoppo .. thanks for correction .. :)
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks!
Hope the points split is ok...
Hope the points split is ok...