📄 huffman.h
字号:
#include <string>
#include <iostream>
#include <conio.h>
#include <dos.h>
using namespace std;
class huffman
{
private:
typedef struct
{
char elem;
int weight,parent,lchild,rchild;
}hfnode,*hftree;
hftree hft;
int n;
bool selectmin(int m,int &lc,int &rc);
bool readdate();
bool readhfm(string filename);
bool writehfm(string filename);
public:
huffman();
bool creathuffmantree();
bool creathuffmantree(string filename);
~huffman();
bool encoding(string filename);
bool decoding(string filename);
};
bool fileprint(string filename);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -