?? 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 + -