void foundtree(BiTree *root)
{
char x;
*root=(BiTree)malloc(sizeof(BiTreeNode));
scanf("%c",&x);
if(x=='#')
{
(*root)=NULL;
}
else
{
(*root)->data=x;
foundtree(&(*root)->lchild);
foundtree(&(*root)->rchild);
}
}
void foundtree(BiTree *root)
{
char x;
*root=(BiTree)malloc(sizeof(BiTreeNode));
scanf("%c",&x);
if(x=='#')
{
(*root)=NULL;
}
else
{
(*root)->data=x;
foundtree(&(*root)->lchild);
foundtree(&(*root)->rchild);
}
}