int GetHeight(BinTree BT)
{
if (!BT)return 0;
int leftheight = GetHeight(BT->Left);
int rightheight = GetHeight(BT->Right);
return (leftheight>rightheight ) ? (leftheight + 1) : (rightheight + 1);
}
{
if (!BT)return 0;
int leftheight = GetHeight(BT->Left);
int rightheight = GetHeight(BT->Right);
return (leftheight>rightheight ) ? (leftheight + 1) : (rightheight + 1);
}