int GetNodeNum(Node *pRoot)
{
    if (!pRoot)
        return 0;
    return GetNodeNum(pRoot->pLeft) + GetNodeNum(pRoot->pRight) + 1;
}

 

 

 

EOF

相关文章: