![]() |
#2
qunxingw2013-10-04 16:21
|

int fan(LinkList &L)
{
Node *p,*q;
p=L->next;
L->next=NULL;
while(p)
{
q=p->next;
p->next=L->next;
L->next=p;
p=q;
}
return 1;
}
{
Node *p,*q;
p=L->next;
L->next=NULL;
while(p)
{
q=p->next;
p->next=L->next;
L->next=p;
p=q;
}
return 1;
}