摘要:
将单链表中终端节点的指针端由空指针改为指向头结点,就使整个单链表形成一个环,这种头尾相连的单链表称为单循环链表,简称循环链表(circular linked list)。 循环链表解决了从一个节点,访问到链表的全部节点的问题。循环链表和单链表的主要差异就在于循环的判断条件上,原来是判断p->next 阅读全文
posted @ 2017-06-21 20:18
Been_You1997
阅读(285)
评论(0)
推荐(0)
摘要:
#include #include #include #include #define N sizeof(struct book) #define PT "%-5d %10s %6s %6s %8s %3d \n",p->num,p->name,p->where,p->author,p->pub,p->count struct book /*图书信息*/ { int num; /*书号*... 阅读全文
posted @ 2017-06-21 15:42
Been_You1997
阅读(981)
评论(0)
推荐(0)

浙公网安备 33010602011771号