Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C++ vectors

Name: Anonymous 2009-10-16 0:33

Ok this is driving me nuts. I'm working in C++ and trying to delete an element from a vector
It's going something like this:

for(int i = 0; i < myVector.capacity(); i++)
{

if(myVector.getName().compare("Brian")
{
myVector.erase(myVector.begin()+1);
}

}

From what I've seen online I have to use an iterator but the only examples of that I can find are when using a vector that holds the type<int> myVector holds my own object type (<File>).

I should've just used an array >.< but it will be resized often

Name: Anonymous 2009-10-16 16:10

/prog/ is that way >>>>>>>

Name: Anonymous 2009-11-27 20:44

Name: Mbt 2010-04-28 23:43

The Mbt are popular with both recreation and sportswear,Mbt shoes are simply matchless in terms of style, comfort and longevity,Mbt sale Now! Free Shipping! NO Tax!http://www.mbt-antishoes.net
The ghd iv styler offers you the opportunity to fashion,The ghd hair straighteners optimum performance wherever you travel,the ghd save up 50%  off,free shipping!no tax! http://www.ghdivstyle.com
The Christian Louboutin shoes is withstand all kinds of day to day pressures with great amounts of poise and yet strive ahead in life,christian louboutin sale fashion design to Show your special style,The Christian LouboutinHighlight the females gentle and lovely,http://www.christianlouboutindesigners.com

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List