随笔分类 -  C

摘要:C语言实现链队列 LinkQueue.h // // Created by Administrator on 2024/8/17. // #ifndef LINKQUEUE_H #define LINKQUEUE_H #include <stdbool.h> /** 定义队列元素结构体*/ type 阅读全文
posted @ 2024-08-18 09:55 相遇就是有缘 阅读(31) 评论(0) 推荐(0)
摘要:链栈栈的实现方式 代码结构图 LinkElement.h #ifndef LINKSTACK_H #define LINKSTACK_H #include <stdbool.h> //定义数据类型 typedef int LinkElementType; /** 定义链栈的结点结构*/ typede 阅读全文
posted @ 2024-07-19 17:43 相遇就是有缘 阅读(35) 评论(0) 推荐(0)
摘要:顺序栈的实现方式 代码结构图 Element.h typedef struct { int id; char * name; } ElementType; SeqStack.h #include <stdio.h> #include "Element.h" #include <stdbool.h> 阅读全文
posted @ 2024-07-10 00:03 相遇就是有缘 阅读(32) 评论(0) 推荐(0)