?? 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();
~huffman();
bool encoding(string filename);
bool decoding(string filename);
};
bool fileprint(string filename);
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -