求c语言数据结构二叉树的建树,前序遍历,输出树的代码,能用采纳。

日期:2017-12-15 12:12:20 人气:1

求c语言数据结构二叉树的建树,前序遍历,输出树的代码,能用采纳。

#include #include #define MAXSIZE 100 //二叉树中最多的结点数  typedef char TElemType; typedef struct BiTNode { TElemType data; struct BiTNode *lchild,*rchild; }BiTNode,*BiTree; //定义函数指针 typedef void(* Visit)(BiTree); //二叉树的初始化
    A+
热门评论