void Precreat(BTree bt)
{
char ch1[10];
scanf("%s",ch1);
if(strcmp(ch1,"$")==1)
{
return;
}
else
{
bt=(BTree)malloc(sizeof(BTree));
if(strcmp(ch1,"@"))
{
bt=NULL;
}
strcpy(bt->name,ch1);
Precreat(bt->lchild);
Precreat(bt->rchild);
}
}
这样写有什么问题??
程序不会报错