Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please do his in visual studio c++ Overview In this programming challenge, you will design a linked list class to hold a series of integers.
please do his in visual studio c++
Overview
In this programming challenge, you will design a linked list class to hold a series of integers.
Instructions
Design a linked list class to hold a series of integers. The class should have member functions for appending, inserting, and deleting nodes. Create a driver program that contains a menu that allows the user to appending, insert, and delete integers to and from the list. Don't forget to add a destructor that destroys the list. You will also make the following modifications to your linked list:
- List Print - Modify the linked list to add a print member function. The function should display all the values in the linked list. Add this functionality selection to your driver program menu.
- List Copy Constructor - Modify the linked list to add a copy constructor. Add this functionality selection to your driver program menu.
- List Search - Modify the linked list to add a member function named search that returns the position of a specific value, x, in the linked list. The first node in the list is at position 0, the second node is at position 1, and so on. If x is not found in the list, the search should return -1. Add this functionality selection to your driver program menu.
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