C语言简单实现二叉树创建并前中后序输出

C语言简单实现二叉树创建并前中后序输出 #include <stdio.h> #include <stdlib.h> #define TElemType char typedef struct BiNode{ TElemType data; struct BiNode *lchild,*rchild; //左右孩子指针 }BiNode,*BiTree; //使用前序遍历的方式创建二叉树 void
相关文章
相关标签/搜索