[Solved] cpp linked list program:error in display [closed]
You never assign an initial node. This is the kind of problem that a sheet of paper, a pencil, and two minutes of drawing arrows and boxes should solve, and until you’re fluent in dynamic allocation get used to doing a lot of that. This: if(start==NULL) { p->next=NULL; p->prev=NULL; // NOTE: start is still NULL … Read more