随笔分类 -  链表

常用链表
list.h中的部分链表指针图
摘要:list和hlist链表合并list_splice(&list1,&list2)kset 阅读全文
posted @ 2011-09-09 14:27 image eye 阅读(485) 评论(0) 推荐(0)
队列和hash表
摘要://简单队列的实现#include <stdio.h>#include <stdlib.h>#include <string.h>#define MAXSIZE100struct queue{int elem[MAXSIZE];int front,rear;};void initqueue(struct queue **q){(*q)->front =(*q)->rear=0;}int isfull(struct queue *q){if(q->front == (q->rear+1)%MAXSIZE)return 1;elseret 阅读全文
posted @ 2011-07-12 17:31 image eye 阅读(999) 评论(0) 推荐(0)
图示双链表
摘要:图示双链表的创建,添加,删除过程 阅读全文
posted @ 2011-07-12 16:54 image eye 阅读(4007) 评论(0) 推荐(2)
图示单链表
摘要:图示单链表的创建,添加,删除过程 阅读全文
posted @ 2011-07-12 16:46 image eye 阅读(556) 评论(0) 推荐(1)
图示指针
摘要:图示指针的转换过程 阅读全文
posted @ 2011-07-12 16:29 image eye 阅读(776) 评论(1) 推荐(1)