Question: -Overload the insertFirst and insertLast pure virtual functions such that they accept a vector of possible values as parameters. All values in the vector are

-Overload the insertFirst and insertLast pure virtual functions such that they accept a vector of possible values as parameters. All values in the vector are to be inserted.

-Overload the deleteNode pure virtual function such that it accepts a vector of possible values. All values in the vector should be deleted.

-Modify deleteNode such that an exception is thrown when called on an empty list and when the item to delete is not in the list.

-Finally create 2 lists using the STL list container. Add some values to them and sort them. Merge the two lists together into one list. Print the list using the screen iterator example from Appendix H. The files are supplied below

unorderedLinkedList.h (4 photos)

-Overload the insertFirst and insertLast pure virtual functions such that they accepta vector of possible values as parameters. All values in the vectorare to be inserted. -Overload the deleteNode pure virtual function such thatit accepts a vector of possible values. All values in the vector

orderedLinkedLists.h

should be deleted. -Modify deleteNode such that an exception is thrown whencalled on an empty list and when the item to delete isnot in the list. -Finally create 2 lists using the STL listcontainer. Add some values to them and sort them. Merge the two

testProgUnorderedLinkedList.cpp

lists together into one list. Print the list using the screen iteratorexample from Appendix H. The files are supplied below unorderedLinkedList.h (4 photos)

linkedList.h

orderedLinkedLists.h testProgUnorderedLinkedList.cpp linkedList.h Miscellaneous Files (Global Scope) \} Hend1f Miscellaneous Files (GlobalScope) \} Hend1fimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

Miscellaneous Files (Global Scope) \} Hend1f Miscellaneous Files (Global Scope) \} Hend1f

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!