求二叉树的节点个数 根节点的左子树的节点数+根节点的右子树的节点数+根节点本身 int GetSize(BtNode* ptr) { if(ptr==nullptr) return 0; else return GetSize(ptr->leftchild)+GetSize(ptr->rightchild)+1; }