ch5_5.txt
上传用户:lgb298
上传日期:2013-03-22
资源大小:1025k
文件大小:0k
源码类别:

软件工程

开发平台:

C/C++

  1. void countleaf(JD *bt,int count)
  2. {   if(bt!=NULL)
  3.     {  if((bt->lchild==NULL)&&(bt->rchild==NULL))
  4.        {   count++;
  5.            return;
  6.        }
  7.        countleaf(bt->lchild,count);
  8.        countleaf(bt->rchild,count);
  9.     }
  10. }