binarytreenode.h
来自「提供文本的无损压缩功能」· C头文件 代码 · 共 24 行
H
24 行
#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 + =
减小字号Ctrl + -
显示快捷键?