摘要: #include<stdio.h> #include<malloc.h> /* malloc()等 */ #include<process.h> /* exit() */ /* 函数结果状态代码 */ #define TRUE 1 #define FALSE 0 #define OK 1 #defi 阅读全文
posted @ 2020-12-28 08:38 张同光 阅读(187) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> #include<malloc.h> #include<process.h> #define TRUE 1 #define FALSE 0 #define OK 1 #define ERROR 0 #define MAX_TREE_SIZE 100 typedef 阅读全文
posted @ 2020-12-28 08:37 张同光 阅读(97) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> #include<malloc.h> #include<process.h> #define TRUE 1 #define FALSE 0 #define OK 1 #define ERROR 0 #define MAX_TREE_SIZE 100 typedef 阅读全文
posted @ 2020-12-28 08:36 张同光 阅读(125) 评论(0) 推荐(0) 编辑
摘要: //输入只有一行,包含一个字符串S,用来建立二叉树。保证S为合法的二叉树先序遍历字符串,节点内容只有大写字母,且S的长度不超过100。 //共一行,包含一串字符,表示按中序遍历二叉线索树得出的节点内容,每个字母后输出一个空格。请注意行尾输出换行。 //例如;ABC DE G F #include<s 阅读全文
posted @ 2020-12-28 08:34 张同光 阅读(134) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>/*头文件*/ #include<stdlib.h> //定义二叉树结构体 typedef struct BiTNode { char data; struct BiTNode *lchild,*rchild; }BiTNode,*BiTree; void PreO 阅读全文
posted @ 2020-12-28 08:29 张同光 阅读(133) 评论(0) 推荐(0) 编辑