摘要: 一、定义一个结构体 #include <stdio.h> #include <string.h> #include <stdlib.h> typedef int ElemType; // 自定义链栈的数据元素为整数。 typedef struct SNode { ElemType data; // 阅读全文
posted @ 2021-07-31 11:46 lnterpreter 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 一、定义一个结构体 #include <stdio.h> #include <string.h> #define MAXSIZE 10 // 顺序栈的最大长度。 typedef int ElemType; // 自定义顺序栈的数据元素为整数。 typedef struct { ElemType da 阅读全文
posted @ 2021-07-31 11:20 lnterpreter 阅读(131) 评论(0) 推荐(0) 编辑