[求助]求叶子结点数的函数
求叶子结点数的函数怎么不对?int CountLeaf ( BiTNode *T)
{
int count=0;
if ( T) { if ( (T->lchild==NULL)&& ( T->rchild==NULL) ) count++;
CountLeaf ( T->lchild);
CountLeaf ( T->rchild);
}
return count;
}

你的过去不是你的潜力,伟大的成就是干出来的,而不是想出来的!
没有调试.其他应该没有问题