subject
Computers and Technology, 20.02.2020 17:17 hvvhvc

Design and implement your own linked list class to hold a sorted list of integers in ascending order. The class should have member functions for inserting an item in the list, deleting an item from the list, and searching the list for an item. Note: the search function should return the position of the item in the list (first item at position 0) and -1 if not found. In addition, it should have member functions to display the list, check if the list is empty, and return the length of the list. Be sure to have a class constructor, a class destructor, and a copy constructor for deep copy. Demonstrate your class with a driver program (be sure to include the following cases: insertion at the beginning, end, and inside the list, deletion of first item, last item, and an item inside, searching for an existing/non-existing item, and modifying a list that was initialized to an existing list). Deliverables: submit the following 1. A copy of your class definition and your driver program in a text file. 2. Screen shots showing your class meets the problem specifications. Note: if your class does not meet any of the specs, make sure to indicate so in your documentation.

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:00, sjackson0625p8w1a0
Which action is good business etiquette? a. switching your cell phone off before you enter a meeting b. keeping your cell phone on low volume before you enter a meeting c. setting a pleasant ring tone on your cell phone before you enter a meeting d. setting a standard ringtone on your cell phone before you enter a meeting
Answers: 1
image
Computers and Technology, 22.06.2019 17:00, DRock4976
Which of the following is not contained on the slide show toolbar? a. next button b. slide button c. close button d. pen too
Answers: 2
image
Computers and Technology, 26.06.2019 02:30, azertyqwerty123
Melissa needs to put a topic name on her email that she will send will to her teacher . choose the name of the field
Answers: 1
image
Computers and Technology, 26.06.2019 06:00, dranio
Which statement is true about customizing presentation programs? 1.you can add multiple animations to an object in a slide with the design option. 2.you can customize a predesigned slide layout with the slide master. 3.you can view the animation effect on the slide when you are working on it. 4.you cannot make any changes to the predesigned themes in presentation programs.
Answers: 1
You know the right answer?
Design and implement your own linked list class to hold a sorted list of integers in ascending order...

Questions in other subjects:

Konu
Computers and Technology, 08.10.2021 01:30