写了个tostring
This commit is contained in:
+9
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user