编写算法,实现带头结点单链表的逆置算法。
voidinvent(Lnode*heaD.
{Lnode*p,*q;
if(!head->next)returnERROR;
p=head->next;q=p->next;p->next=NULL;
while(q)
{p=q;q=q->next;p->next=head->next;head->next=p;}
}
A campus emergency ______ occur at any time of the day or night, weekend, or holiday, with little or no warning.
免费的网站请分享给朋友吧