mirror of
https://github.com/by777/dataStructureForC.git
synced 2026-02-04 02:23:16 +08:00
增加方法
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user