HuffmanCoding.cpp
#include #include #include using namespace std; struct HNode { int weight; int parent; int LChild; int RChild; }; struct HCode { char data; char code[1000]; }; class Huffman //哈夫曼类 { private: HNode* HTree; HCode* HCodeTable; int N;
下载地址
用户评论