#include <stdio.h>
#include<stdlib.h>
#include <malloc.h>
typedef struct BinTreeNode
{
char Element;
struct BinTreeNode *leftchild;
struct BinTreeNode *rightchild;
}BinTreeNode;
BinTree CreateBinTree()
{
BinTree T;
char ch;
scanf("%c",&ch);
ch=getchar();
if (ch=='#')
T=NULL;
else
{
T= (struct *Node)malloc(sizeof(struct BinTreeNode));
T->Element=ch;
CreateBinTree(T->left);
CreateBinTree(T->right);
}
}
慕丝7291255