Not sure if my program is safe to run,please comment on my comments and please get my program running where I can input the amount of nodes at run time.
#define MAX 30
cout<<"How many people to be stored";
node *ptr=(node*)malloc(sizeof(node)); /* does'nt this need to be sizeof(node) * amount */
/* because we need a block of memory for each node */
ptr->next=(node*)malloc(sizeof(node)); /* is this correct */
ptr->next; /* and this */
/* do something with nodes here */
free(node ptr[start]); /* how do I free the node pointers individually/altogether */
ptr=NULL; /* is this needed */
BIG thanks for this.