- 博客(1)
- 收藏
- 关注
原创 二叉树的建立(C语言描述)
第一篇CSDN博客 :D 学校的《数据结构》教材给出的二叉树的建立算法是错的,因此自己写了一个。 结点定义 typedef int element_type; typedef struct binary_tree { element_type data; struct binary_tree *lchild; //左孩子 struct binary_tree *rchild; //右孩子 } BinaryTree; 树的结点数据可以从键盘读入,也可以从文件读入。
2021-05-14 18:17:29
254
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人