Question: C++ Complete the ADT Vector implementation from our previous labs by adding the following two functions to the Vector class: 1. Member function void erase

C++
Complete the ADT Vector implementation from our previous labs by adding the following two functions to the Vector class: 1. Member function void erase (int k) {...} which removes the element at index k. 2. Member function void insert(int k, Tx) {...} which inserts the new element x at index k. (The element that is at index k prior to insertion and all other elements at higher-numbered indices are to move one position to the right.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
