i have a
tutorial on the various vector methods that you should probably look at. however, the short version is, if you want to erase a single element at position i from a vector v, you call the method
v.erase(v.begin() + i);
erase() requires iterators (similar to pointers) to access elements. begin() returns an iterator to the first element of the vector, so begin() + i increments that iterator to the position i elements away from begin().
begin() and end() do not accept parameters, as you have written in your code.
and please follow nirvanarupali's recommendation to use code tags - it's the rules. you should edit your previous posts to add them as well.
hope that helps.
-jjh
This post has been edited by jjhaag: 2 Oct, 2007 - 10:30 PM