#include<stdio.h>
struct SqList
{
int value;
struct SqList *next;
};
void reverse(struct SqList *L)
{
struct SqList *p;
struct SqList *q;
p=L->next;
L->next=NULL;
while(p)
{
q=p->next;
p->next=L->next;
L->next=p;
p=q;
}
printf("\n逆置链表:");
}