Reversed to the original data in the list and then submitted to the wrong, I want to ask next is where there is error,
Void movelist (sqlist * L) {
Sqlist * p * q;
P=L - & gt; next;
L - & gt; Next=NULL;
while(p!=NULL) {
Q=p - & gt; next;
P - & gt; Next=L - & gt; next;
L - & gt; Next=p;
P=q;
}
}
CodePudding user response:
You have a program logic problem,,,,,,,,,,CodePudding user response:
Has solved this problem last nightCodePudding user response:
To create a new empty list, and then using the method of head, the linked list node is inserted into the empty list, you can print in reverse chronological order,CodePudding user response: