Create a simple linked list program to create a class list containing class node
ID: 3626683 • Letter: C
Question
Create a simple linked list program to create a class list containingclass node {
void *info;
node *next;
public:
node (void *v) {info = v; next = 0; }
void put_next (node *n) {next = n;}
node *get_next ( ) {return next;}
void *get_info ( ) {return info;}
};
Be able to initially fill the list. Provide functions to insert/append nodes and remove
nodes from the linked list. Be able to display the contents of the list.
Write a little driver program with at least 5 values passed in (so that 5 nodes are created)
as you insert/append, delete and display data, showing the programs operation.
I have been pondering over this for awhile....but I dont know where to begin. I have been reading the chapter over Node classes but I dont understand exactly how to use the Class Node in a program. If anyone could help me that would be great.