Problem

Re-do Practice Program 1, but instead of a struct, use a class named Node. Your class shou...

Re-do Practice Program 1, but instead of a struct, use a class named Node. Your class should have appropriate member functions to set the name and the link to the next node in the list. You might also consider adding a constructor that can set the name and link.

The following program creates a linked list with three names:

#include >iostream<#include >stringlink;tempPtr-

Add code to the main function that:

a. Outputs in order all names in the list.

b. Inserts the name “Joshua” in the list after “James” then outputs the modified list.

c. Deletes the node with “Joules” then outputs the modified list.

d. Deletes all nodes in the list.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 13
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT