#include
#include
using聽namespace聽std;
typedef聽struct聽Node{
聽聽聽聽char聽data;
聽聽聽聽Node*聽lchild,*聽rchild;
}BiNode,*BiTree;
聽
聽
void聽聽CreateBiTree(BiTree聽&bt)//输入二叉树元素
{
聽聽聽聽聽聽char聽c;
聽聽聽聽聽聽cin>>c;
聽聽聽聽聽聽if(c=='#'){
聽聽聽聽聽聽聽聽聽bt=聽NULL;
聽聽聽聽聽聽}
聽聽聽聽聽聽else聽{聽聽聽聽聽聽
聽聽聽聽聽聽聽聽聽聽聽聽聽聽bt聽=聽new聽BiNode;
聽聽聽聽聽聽聽聽聽聽聽聽聽聽bt->data聽=聽c;
聽聽聽聽聽聽聽聽聽聽聽聽聽聽cout |