增加方法

This commit is contained in:
Xu Bai
2019-07-18 21:32:20 +08:00
parent 8c41a8c043
commit 110d1bf506

View File

@@ -2,7 +2,7 @@
* @Author: Xu Bai
* @Date: 2019-07-13 22:24:04
* @LastEditors: Xu Bai
* @LastEditTime: 2019-07-14 22:51:14
* @LastEditTime: 2019-07-18 21:31:33
*/
#include "string.h"
#include "stdio.h"
@@ -101,4 +101,16 @@ void CreateBiTree(BiTree *T)
CreateBiTree(&(*T)->lchild);
CreateBiTree(&(*T)->rchild);
}
}
Status BiTreeEmpty(BiTree T)
{
if (T)
{
return FALSE;
}
else
{
return TRUE;
}
}