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.
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.