孩子们我回来了
This commit is contained in:
+3
-7
@@ -1,25 +1,21 @@
|
||||
#ifndef BITREE_H
|
||||
#define BITREE_H
|
||||
|
||||
#include<sstream>
|
||||
|
||||
|
||||
class BiTree {
|
||||
class BiTree
|
||||
{
|
||||
public:
|
||||
int data;
|
||||
BiTree* left;
|
||||
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);
|
||||
|
||||
std::string toString();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user