removing 2 elements from a vector

find a number and remove that number at that current position
then remove 2nd element at the same time

Hello ballinlinda,

Take a look at http://www.cplusplus.com/reference/vector/vector/
and http://www.cplusplus.com/reference/vector/vector/erase/

The section on Iterators could be useful.

If you post some code I would have a better answer than 42.

Andy
Topic archived. No new replies allowed.