int NodeCount ( BiTree T)
{
if(!T) return 0;
if(!T->lchild&&!T->rchild) return 0;
if(!T->lchild)
{
return NodeCount(T->rchild)+1;
}
if(!T->rchild)
{
return NodeCount(T->lchild)+1;
}
return NodeCount(T->lchild)+NodeCount(T->rchild);
}
06-01