随笔分类 - C
摘要:C语言实现链队列 LinkQueue.h // // Created by Administrator on 2024/8/17. // #ifndef LINKQUEUE_H #define LINKQUEUE_H #include <stdbool.h> /** 定义队列元素结构体*/ type
阅读全文
摘要:链栈栈的实现方式 代码结构图 LinkElement.h #ifndef LINKSTACK_H #define LINKSTACK_H #include <stdbool.h> //定义数据类型 typedef int LinkElementType; /** 定义链栈的结点结构*/ typede
阅读全文
摘要:顺序栈的实现方式 代码结构图 Element.h typedef struct { int id; char * name; } ElementType; SeqStack.h #include <stdio.h> #include "Element.h" #include <stdbool.h>
阅读全文