摘要: 大家好!过完新年后,在宿舍闲着蛋疼,就把上学期无法实现的哈夫曼树的压缩及其解压实现一下了。至于怎么压缩各种格式的文件,现在还没有找到实现方法。以下是代码实现://Huffman_H.h#ifndef Huffman_H#define Huffman_H#include <string>#include <fstream>#include <queue>#include <vector>using namespace std;const int MAX_SIZE = 256; //含有256个ACSII码struct huffman_node{ c 阅读全文
posted @ 2013-02-20 23:19 中大黑熊 阅读(4464) 评论(1) 推荐(1) 编辑