Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

im having trouble with this assignment in C++ the top pictore is the requirments and the bottom is the start i was given thank you

im having trouble with this assignment in C++ the top pictore is the requirments and the bottom is the start i was given thank you for your helpimage text in transcribedimage text in transcribed

DoublyLinked List Hide Folder Information Instructions Implement DoublyLinked List. : each node contains two pointers: one to the next node in the list, one to the previous node in the list Refer the attached file to define the DoublyLinkedList. Implement the following operations 1. add a node in the end of the list 2. add a node in the beginning of the list 3. Display the list contents forward 4. Display the list content backwards. Start Date class DLinklist { private: //define each node in the list struct DLLNode { int value; //store value in the node struct DLLNode *next; //pointer to the next node struct DLLNode *prev; //pointer to the previous node }; DLLNode *head, *tail; int nodeCount; public: DLinkList() { head = nullptr; tail nullptr; nodeCount = 0; } -DLinklist();//destructor //add a function that appends nodes in the end of list void add_end(int); void add_begin(int);//inserts a new node in the start position 2);//inser void display_forward(); //display the contents in the list void display_back();//display the contents in the list }

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_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Joe Celkos Data And Databases Concepts In Practice

Authors: Joe Celko

1st Edition

1558604324, 978-1558604322

More Books

Students also viewed these Databases questions

Question

Explain the factors influencing wage and salary administration.

Answered: 1 week ago

Question

Examine various types of executive compensation plans.

Answered: 1 week ago

Question

1. What is the meaning and definition of banks ?

Answered: 1 week ago

Question

2. What is the meaning and definition of Banking?

Answered: 1 week ago