/* 计算度为0的结点*/
void CountNode1(BiTree T){
if(T == NULL) //跳出递归条件
return;
if(T->left == NULL&&T->right == NULL)//关系运算优先级== 大于逻辑运算&&
count0++;
CountNode1(T->right);//可以与下式调换位置
CountNode1(T->left);
}
08-12
3308
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
11-28
3408
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交