看看二叉树创建那里出了问题
//二叉树#include "stdio.h"
#include "malloc.h"
typedef char DataType;
typedef struct node
{
DataType data;
struct node *LChild,*RChild;
}BiTnode,*Bitree;
void createTree(Bitree *L)
{
char ch;
ch=getchar();
if(ch=='.')
*L=NULL;
else
{
*L=(Bitree)malloc(sizeof(BiTnode));
(*L)->data=ch;
(*L) -> LChild = (*L) -> RChild = NULL;
createTree(&((*L)->LChild));
createTree(&((*L)->RChild));
}
}
void main()
{
Bitree *L;
createTree(L);
}