Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

-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)

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

orderedLinkedLists.h

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

testProgUnorderedLinkedList.cpp

image text in transcribedimage text in transcribed

linkedList.h

image text in transcribedimage text in transcribedimage 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions