C语言 求一个二叉树中位于先序序列中第k个位置的结点的值.doc
文本预览下载声明
PAGE
PAGE 1
编制一个递归算法,求一个二叉树中位于先序序列中第k个位置的结点的值
#includestdio.h
#includestdlib.h
#define NULL 0
typedef char TElemType;
typedef struct BiNode{
struct BiNode *lchild;
TElemType data;
struct BiNode *rchild;
}BiNode;
struct BiNode * CreateBiTree(struct BiNode *T)
{ TElemType a;
struc
显示全部