int GetHeight( BinTree BT )
{
if(BT==NULL)// 如果根为NULL ,则返回0
return 0;
int l = GetHeight(BT->Left) + 1;
int r = GetHeight(BT->Right) + 1;
if(l>r)return l;
else return r;
}
int GetHeight( BinTree BT )
{
if(BT==NULL)// 如果根为NULL ,则返回0
return 0;
int l = GetHeight(BT->Left) + 1;
int r = GetHeight(BT->Right) + 1;
if(l>r)return l;
else return r;
}