摘要: Binary Tree: 1 #include <stdio.h> 2 #include <stdlib.h> 3 4 typedef char Elemtype; 5 6 typedef struct BTNode 7 { 8 Elemtype data; 9 struct BTNode *lch 阅读全文
posted @ 2020-09-01 15:27 wind_y 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 1 //双亲孩子表示法 2 #define MAX_TREE_SIZE 100 3 4 typedef char ElemType; 5 6 //孩子结点 7 typedef struct CTNode 8 { 9 int child; //孩子结点的下标 10 struct CTNode *nex 阅读全文
posted @ 2020-09-01 09:11 wind_y 阅读(420) 评论(0) 推荐(0) 编辑