Member Insertion By Position
Modify the list class you created in the previous programming challenges by adding a member function for inserting a new item at a specified position:
void insert(double x, int pos);
A position of 0 means that x will become the first item on the list, a position of 1 means that x will become the second item on the list, and so on. A position equal to, or greater than, the length of the list means that the x is placed at the end of the list.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.