Doubly Linked List
Write a C++ code that implements a doubly linked list structure that contains float elements, and then do the following:
1. Implement the necessary member functions.
2. Implement a function DisplayPop(…) that displays the inserted elements in a way like the pop function in the stack, Example: input= 1.5 , 3.5, 10, 0.5 output= 0.5, 10, 3.5, 1.5
3. Implement a function DisplayDequeue(…) that displays the inserted elements in a way like the dequeue function in the queue, Example: input= 1.5 , 3.5, 10, 0.5 output= 1.5, 3.5, 10, 0.5
4. Implement a function DisplayEven(...) that displays only the even elements inserted by the user. i.e.: element number 0, element number 2, etc.
5. Implement a function DisplayOdd(...) that displays only the odd elements inserted by the user. i.e.: element number 1, element number 3, etc.
The answer to the question is available in the PDF file https://assignmentexpert.com/https://assignmentexpert.com/homework-answers/programming-answer-37989.pdf
Comments
Leave a comment