Share
Explore BrainMass

C++ Program to store values in a linked list

Create a structure that has one variable called value and one pointer to the list (making it a linked list). Prompt for 5 values from the keyboard as input and store them in the linked list. Print out the current contents of the list. Allow the user to add one more value to the linked list, and print the contents of the list again.

Solution Summary

Creates a structure that has a variable called value and a pointer to a list. The program also prints out the current contents of the list.

$2.19