![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
文章平均质量分 76
普通网友
这个作者很懒,什么都没留下…
展开
-
顺序表
//顺序表是以一组地址连续的存储单元依次存储数据的线性结构//存储结构#define LIST_INIT_SIZE 10 //线性表存储空间的初始分配量#define LIST_INCREMENT 2 //线性表的存储空间的分配增量#define ElemType inttypedef struct { ElemType *elem; //存储空间基址 int length;原创 2009-11-03 20:29:00 · 302 阅读 · 0 评论 -
队列
//单链队列--队列的链式存储结构#define QElemType inttypedef struct QNode { QElemType data; struct QNode *next;}QNode,*QueuePtr;typedef struct{ QueuePtr front,rear;}LinkQueue;void InitQueue(LinkQueue *Q){ (*Q).原创 2009-11-06 14:47:00 · 309 阅读 · 0 评论