cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
removing 2 elements from a vector
removing 2 elements from a vector
May 5, 2018 at 3:25am UTC
ballinlinda
(6)
find a number and remove that number at that current position
then remove 2nd element at the same time
May 5, 2018 at 10:17am UTC
Handy Andy
(5051)
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.