Create a simple linked list program


Create a simple linked list program to create a class list containing:

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

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Create a simple linked list program
Reference No:- TGS0100387

Expected delivery within 24 Hours