(Solved):USING C++ Modify the existing vector’s contents, by erasing the element at index 1 (initially 200), then inserting 100 and 102 in the shown locations. Use Vector ADT’s erase() and insert() only, an… View Answer…

 

Question

USING C++

Modify the existing vector’s contents, by erasing the element at index 1 (initially 200), then inserting 100 and 102 in the shown locations. Use Vector ADT’s erase() and insert() only, and remember that the first argument of those functions is special, involving an iterator and not just an integer. Sample output of below program: 100 101 102 103 #include #include using namespace std; void PrintVectors(vector numsList) { int i;

Scroll to top