Question: in c++ Your task is to implement Singly linked list in C++. Create a header file called linkedlist.h that contains two classes: Node and LinkedList.

in c++in c++ Your task is to implement Singly linked list in C++.

Your task is to implement Singly linked list in C++. Create a header file called "linkedlist.h" that contains two classes: Node and LinkedList. Create a separate file linkedlist.cpp that include the linkedlist.h and defines all the member functions. You may use the following code snippet to get started. Your program should define a separate main class called LinkedListTest.cpp to test each of the insert, deletion and search functions. //linkedlist.h class Node public int info Node next class LinkedList public Node* head, *tail; LinkedList); //initialize head and tail to O or NULL LinkedList(); void insertAtHead(int valuel; void insertAtTail(int valuel; // Print the info value before deletion of the node void deleteAtHead0; void deleteAtTail; void search(int value); void displayList()

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