Question: you will be starting to write a templated linked list class. It can be either a doubly, or singly linked list (circular is extra credit)

you will be starting to write a templated linked list class.

  1. It can be either a doubly, or singly linked list (circular is extra credit)

  2. have a node class and list class

  3. have the list class keep track of the head (and tail for doubly)

  4. create an insertion function

  5. create a function that prints all in the list

  6. Have a main which inserts 4 items into the list and then prints them.

Remember to test out your template with 2 different type of items.

C++

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!