Answered step by step
Verified Expert Solution
Question
1 Approved Answer
CS 2413 LAB -2 Linked List 1. file linkedlist.cpp that include the linkedlist.h and defines all the member functions. You may use the following code
CS 2413 LAB -2 Linked List 1. 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. Submit a Word or a PDF file with your code and output screenshots. Use appropriate comments wherever necessary 10 points] //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 value); void insertAtTail(int value); // Print the info value before deletion of the node void deleteAtHead(). void deleteAtTail(); void search(int value); void displayList()
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started