Home > Back-end >  Singly linked list data structure to delete the specified location data of a single function
Singly linked list data structure to delete the specified location data of a single function

Time:10-05

Sentenced to topic system for RE error can't find where the error is the great god please advise!

CodePudding user response:

What is the type of LinkList? A pointer?
At the back of the Node * q=prev - & gt; next; If it is NULL, the collapse,

CodePudding user response:

reference 1st floor lirg8405 response:
LinkList what type? A pointer?
At the back of the Node * q=prev - & gt; next; If it is NULL, the collapse,
is a pointer thank you is really the problem has been solved

CodePudding user response:

Change the if ( prev - & gt; Next ==NULL) return 0; To

While in front of (prev - & gt; Next & amp; & . ) detection is prev - & gt; Next, prev itself will not be NULL
  • Related