Open main menu

CDOT Wiki β

Changes

Assignment 3i: Q & A

13 bytes added, 17:56, 5 December 2012
no edit summary
'''Q: Can you remove an element from the middle of the vector container?''' submitted by Imtiaz Latif & Team(2&10) <br>
'''A:''' Yes, by using the Standard Library vector member function erase(), which has two implementations: one, '''iterator erase(iterator postion)''' will erase the element at the passed iterator position, while the other, '''iterator erase(iterator first, iterator last)''' will erase ALL the elements in the specified range.
1
edit