// 找叶子结点到根结点的路径
void LBpath(BiTree root,char path[],int len)
{
int i;
if(root!=NULL)
if(root->Lchild==NULL&&root->Rchild==NULL)
for(i=len-1;i>=0;i--)
{
printf("%c",path[i]);
printf("\n");
}
else
{
path[len]=root->data;
LBpath(root->Lchild),path,len-1);
LBpath(root->Rchild),path,len-1);
}
}