From 110d1bf5062a5c352712749d8a3e06c2ca1c349e Mon Sep 17 00:00:00 2001 From: Xu Bai <1373953675@qq.com> Date: Thu, 18 Jul 2019 21:32:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _04.树/_b.二叉树链式结构.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/_04.树/_b.二叉树链式结构.c b/_04.树/_b.二叉树链式结构.c index 784ad36..071a1bc 100644 --- a/_04.树/_b.二叉树链式结构.c +++ b/_04.树/_b.二叉树链式结构.c @@ -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; + } } \ No newline at end of file