Question: For this program you will add and test 2 new member functions to the IntsList class posted on the website. The two member functions are
For this program you will add and test 2 new member functions to the IntsList class posted on the website. The two member functions are el, int RQS) Assuming that the positions of elements of a list begin numbering at 1 and continue to the end of the list, you will insert a new node with info value el at position pos. Res will become the position of the new node in the modified list. For example, if Res = 1, insert the new node at the head of the list. If pos2, for example, insert the new node BEFORE the node currently at position 2. If the list is empty prior to insertion, insert the new node in the list and adjust head and tail pointers. If pos is too large, don't do anything. If pos is 0 or negative, don't do anything pos) Assume position of elements are defined as above. If pos is zero or negative, do nothing. If the list is empty prior to the request to delete a node, do nothing. If pos is too large, do nothing. To aid in verifying results, you should use the following modified version of printall. This requires: include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
