写了个tostring

This commit is contained in:
2024-11-21 23:09:02 +08:00
parent f8d136fd8e
commit fdbef4b3cc
3 changed files with 45 additions and 19 deletions
+9 -3
View File
@@ -1,6 +1,7 @@
#ifndef BITREE_H
#define BITREE_H
#include<sstream>
class BiTree {
@@ -10,12 +11,17 @@ public:
BiTree *right;
static bool is_empty(BiTree *bt);
static bool is_leaf(BiTree *bt);
static int sum_leaf(BiTree *bt);
static BiTree* createNode(int data);
static void insertNode(BiTree*& bt, int value);
static BiTree *createNode(int data);
static void insertNode(BiTree *&bt, int value);
std::string toString();
};
#endif //BITREE_H