数据结构cc循环链表.pptx
typedef struct node{ datatype data; struct node *next;}*linklist;void invert( linklist head){ linklist p, q, r; p=head; q=p->next; while(q!=NULL) /*没有后继时停止*/ { r=q->next; q->next=p; p=q; q=r; } head->
下载地址
用户评论