Question: Please type out main.cpp Write a program to test various operations of the class doublyLinkedList. Your program should accept a list of integers from a

Please type out main.cpp
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:1. The list in ascending order.2. The list in descending order.3. The list after deleting a number.4. A message indicating if a number is contained in the list.5. Output of the list after using the copy constructor.6. 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-999List in ascending order: 2333List in descending order: 121Enter item to be deleted: 575798838398573312123List after deleting 57 : 2333Enter item to be searched: 23839812123 found in the list.**tt*tt*Testing copy constructortt*intList: 23338398121********Testing assignment operator**** temp: 23338398121***Your program should use the value -999 to denote the end of the input list.

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!