摘要: 1、链队 #include<stdio.h> #include<malloc.h> #include<assert.h> #define ElemType int typedef struct QueueNode{ ElemType data; struct QueueNode* next; }Qu 阅读全文
posted @ 2024-09-16 15:48 颜欢兮 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1、顺序栈 #include<stdio.h> #include<malloc.h> #include<assert.h> #define ElemType int #define STACK_INIT_SIZE 8 #define STACK_INC_SIZE 3 //顺序栈的定义 typedef 阅读全文
posted @ 2024-09-16 15:45 颜欢兮 阅读(3) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> #include<assert.h> #include<malloc.h> typedef int ElemType; typedef struct Node{ ElemType data; struct Node* prior; struct Node* nex 阅读全文
posted @ 2024-09-16 15:44 颜欢兮 阅读(3) 评论(0) 推荐(0) 编辑