Question: Write a program to test various operations of the class doublyLinkedList. Your program should accept a list of integers from a user and use the

Write a program to test various operations of the class doublyLinkedList. Your program should accept a list of integers from a user and use the doubleLinkedList class to output the following:
The list in ascending order.
The list in descending order.
The list after deleting a number.
A message indicating if a number is contained in the list.
Output of the list after using the copy constructor.
Output of the list after using the assignment operator.
An example of the program is shown below:
Enter a list of positive integers ending with -999: 8312198235733-999 List in ascending order: 2333578398121 List in descending order: 1219883573323 Enter item to be deleted: 57 List after deleting 57 : 23338398121 Enter item to be searched: 2323 found in the list. ********Testing copy constructor*********** intList: 23338398121********Testing assignment operator*********** temp: 23338398121

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 Programming Questions!