求助 C算法实现带头节点链表的数据节点部分逆序
void reverse(*h){
*p,*q; //////////就是两个跟h同类型的指针,具体没写出来
p=h->next;
h->next=NULL;
while(p!=NULL)
{
q=p;
p=p->next;
q->next=h->next;
h->next=q;
}
}
谁能详细分析哈,本人还有点迷糊,感觉不是那么回事
2007-12-05 13:17
2007-12-05 20:41
2007-12-05 20:46