#include <iostream.h>
struct btreenode
{
char data;
btreenode *lchild;
btreenode *rchild;
};
void createbtree(btreenode *&bt)
{
char item;
cin>>item;
if(item=='@') bt=NULL;
else {
bt=new btreenode;
bt->data=item;
createbtree(bt->lchild);
createbtree(bt->rchild);
}
void main()
{
btreenode *bt;
createbtree(bt);
}
这个程序那里错了