摘要: #include <stdlib.h> #include <stdio.h> #define STATUS_OK 0 #define STATUS_FAILED -1 // 定义基本数据结构 // 1 利用大数组定义静态链表,数组由头结点,尾结点,已用链表,备用链表四部分构成 // 2 数组头结点: 阅读全文
posted @ 2020-08-20 21:22 墨狮 阅读(250) 评论(0) 推荐(0) 编辑
摘要: // 实现单循环链表 #include <stdlib.h> // 引入标准库与输入输出库 #include <stdio.h> typedef int ElemType; // 定义带头结点的单链表 typedef struct node { ElemType data; struct node* 阅读全文
posted @ 2020-08-20 18:44 墨狮 阅读(363) 评论(0) 推荐(0) 编辑