int CountLeaf(BiTree T){
if(T == NULL) return 0;
if(T->lchild == NULL && T->rchild == NULL)
return 1;
else{
n1 = CountLeaf(T->lchild);
n2 = CountLeaf(T->rchild);
return n1+n2;
}
}
void BiTreeDepth(BiTree T,int level,int& depth){
if(T){
if(level > depth) depth = level;
BiTreeDepth(T->Lchild,level+1,depth);
BiTreeDepth(T->Rchild,level+1,depth);
}
}