📄 htree.h
字号:
#include "Node.h"
class HTree
{
protected:
BaseNode * PRoot;//头指针
//BaseNode * PCurrent; //当前指针
public:
HTree();
~HTree();
void print();
BaseNode* GetRoot()
{
return PRoot;
}
//二叉树的创建
void createBinTree();
//二叉树的先序遍历
void preOrder(BaseNode*);
//二叉树的中序遍历
void inOrder(BaseNode*);
//二叉树的后序遍历
void levelOrder(BaseNode*);
//统计二叉树中结点的个数
int countNode(BaseNode* );
//求二叉树的深度
int depth(BaseNode* );
//二叉树的消毁操作
void destroy(BaseNode* );
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -