摘要:
代码实现: #include <stdio.h> #include <string.h> #include <stdlib.h> #define ElementType char int top_S1 = -1; //定义栈S1 top下标 int top_S2 = -1; //定义栈S2 top下 阅读全文
posted @ 2020-07-31 16:48
1点
阅读(494)
评论(0)
推荐(0)
摘要:
先序遍历与中序遍历的代码实现是差不多的 只是把访问节点的操作放到了入栈操作前 代码实现: #include <stdio.h> #include <string.h> #include <stdlib.h> #define ElementType char int top = -1; //定义top 阅读全文
posted @ 2020-07-31 16:22
1点
阅读(676)
评论(1)
推荐(0)
摘要:
代码实现 : #include <stdio.h> #include <string.h> #include <stdlib.h> #define ElementType char int top = -1; //定义top栈顶元素下标 // 结点结构体 typedef struct BinTNod 阅读全文
posted @ 2020-07-31 16:12
1点
阅读(448)
评论(0)
推荐(0)

浙公网安备 33010602011771号