统计二叉树结点-简单的2行代码

int count(BTNode *T)
{
    if(T==NULL)
        return 0;
    else
        return count(T->lchild) + count(T->rchild) + 1;
}
原文地址:https://www.cnblogs.com/cs-lcy/p/7056331.html