孩子们我回来了

This commit is contained in:
2024-11-22 16:30:05 +08:00
parent fd7908e2de
commit f8b03bad55
+3 -7
View File
@@ -1,25 +1,21 @@
#ifndef BITREE_H #ifndef BITREE_H
#define BITREE_H #define BITREE_H
#include<sstream> #include<sstream>
class BiTree { class BiTree
{
public: public:
int data; int data;
BiTree* left; BiTree* left;
BiTree* right; BiTree* right;
static bool is_empty(BiTree* bt); static bool is_empty(BiTree* bt);
static bool is_leaf(BiTree* bt); static bool is_leaf(BiTree* bt);
static int sum_leaf(BiTree* bt); static int sum_leaf(BiTree* bt);
static BiTree* createNode(int data); static BiTree* createNode(int data);
static void insertNode(BiTree*& bt, int value); static void insertNode(BiTree*& bt, int value);
std::string toString(); std::string toString();
}; };