📄 binarytreenode.h
字号:
#ifndef BINARYTREENODE_
#define BINARYTREENODE_
template <class T> class BinaryTree;
class huffman;
template<class T>
class BinaryTreeNode
{
friend BinaryTree<T>;
friend huffman;
public:
BinaryTreeNode() {LeftChild = RightChild = 0;}
BinaryTreeNode(const T& e)
{data = e; LeftChild = RightChild = 0;}
BinaryTreeNode(const T& e, BinaryTreeNode *l,
BinaryTreeNode *r)
{data = e; LeftChild = l; RightChild = r;}
private:
T data;
BinaryTreeNode<T> *LeftChild,*RightChild;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -