bisorttree.h
来自「数据结构学习中遇到的二叉树的代码」· C头文件 代码 · 共 23 行
H
23 行
#include <iostream>
using namespace std;
struct BiNode
{
int data;
BiNode *lchild, *rchild;
};
class BiSortTree
{
public:
BiSortTree(int a[ ], int n);
~BiSortTree();
BiNode* Getroot( );
BiNode* InsertBST(BiNode *root, BiNode *s);
BiNode* SearchBST(BiNode *root, int k);
private:
BiNode *root;
void Release(BiNode *root);
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?