need help with C++

User Generated

Znurrzn

Mathematics

Description

There are a lot of parts to this lab, make sure to follow the spec!

STEP 1: Create a LinkedList template that can work for ANY datatype. (We will do in class, it is also in the book). Add the copy constructor code that is given to you.

TEST all functionality with a list of double BEFORE you continue. (Might also want to check a list of string as well).

STEP 2: We are going to use the convention that the first item in the list is position 1 (not 0, it will simplify coding for the app you will build). ADD these two functions to your LinkedList template: void deleteAt(int) Deletes object at position x (first element is position 1) t& get(int) Return object at position x (make sure to return by reference)

Unformatted Attachment Preview

*Part 1 slightly MODIFIED* READ EVERYTHING FIRST!!! There are a lot of parts to this lab, make sure to follow the spec! STEP 1: Create a LinkedList template that can work for ANY datatype. (We will do in class, it is also in the book). Add the copy constructor code that is given to you. TEST all functionality with a list of double BEFORE you continue. (Might also want to check a list of string as well). STEP 2: We are going to use the convention that the first item in the list is position 1 (not 0, it will simplify coding for the app you will build). ADD these two functions to your LinkedList template: void deleteAt(int) Deletes object at position x (first element is position 1) t& get(int) Return object at position x (make sure to return by reference) Test them with simple list of double //testing LL template first with double LinkedList nums; //add some values nums.appendNode(10.2); nums.appendNode(20.3); nums.appendNode(30.4); //print the values cout
Purchase answer to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer

Hello che...


Anonymous
Super useful! Studypool never disappoints.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Related Tags