![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
blbq105
这个作者很懒,什么都没留下…
展开
-
静态链表
#include #define MAXSIZE 100 typedef struct { int data; int cur; }sqllist; void init(sqllist p[]) //数组空间初始化为链表 ,p[0].cur为头指针 { int i; for(i=0;i<MAXSIZE-1;i++) { p[i].cur=i+1; } p[MA原创 2016-04-07 09:17:21 · 148 阅读 · 0 评论 -
数据结构--链队列基本操作
#include //链队列的基本操作,首先我们要知道队列是在队头进行删除,队尾进行插入 #include #include typedef struct Sq { int data; //数据域 struct Sq *next; //指针域 }Sq; typedef struct { Sq *front;原创 2016-04-15 00:20:04 · 407 阅读 · 0 评论