#include<stdio.h>
#include<malloc.h>/*输出二叉树叶子节点、叶子节点数目、二叉树高度*/
#include<conio.h>
typedef int DataType;
int count=0;//用于统计叶子节点的数目//
typedef struct Node
{
DataType da
ta;
struct Node *LChild;
struct Node *RChild;
}BitNode,*BitTree;
void CreatBiTree(BitTree *bt)//用扩展先序遍历序列创建二叉树,如果是.当前树根置为空,否则申请一个新节点//
{
char ch;
ch=getchar();
if(ch=='.')*bt=NULL;
else
#include<malloc.h>/*输出二叉树叶子节点、叶子节点数目、二叉树高度*/
#include<conio.h>
typedef int DataType;
int count=0;//用于统计叶子节点的数目//
typedef struct Node
{
DataType da
struct Node *LChild;
struct Node *RChild;
}BitNode,*BitTree;
void CreatBiTree(BitTree *bt)//用扩展先序遍历序列创建二叉树,如果是.当前树根置为空,否则申请一个新节点//
{
char ch;
ch=getchar();
if(ch=='.')*bt=NULL;
else