• 大小: 595KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-01-04
  • 标签: Huffman  

资源简介

使用C++编写了自适应Huffman编码

资源截图

代码片段和文件信息

#include “Header.h“

int main(){
FileHandler file(“I have a dream.txt“);

//读入文件
string l = file.readFile();
UpdateHuffmanCode FileEncode(l);
vector code = FileEncode.encode();
string Coding = ““;
for (int i = 0; i < code.size(); i++){
Coding += code[i];
}
file.writeFile(“result.txt“ Coding true);
getchar();
return 0;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       4230  2017-04-18 16:04  AdaptiveHuffmanCode\AdaptiveHuffmanCode\AdaptiveHuffmanCode.vcxproj

     文件       1172  2017-04-18 15:55  AdaptiveHuffmanCode\AdaptiveHuffmanCode\AdaptiveHuffmanCode.vcxproj.filters

     文件        209  2017-05-07 16:55  AdaptiveHuffmanCode\AdaptiveHuffmanCode\Debug\Adaptive.B0E82418.tlog\AdaptiveHuffmanCode.lastbuildstate

     文件        814  2017-05-07 16:55  AdaptiveHuffmanCode\AdaptiveHuffmanCode\Debug\Adaptive.B0E82418.tlog\cl.command.1.tlog

     文件       8326  2017-05-07 16:55  AdaptiveHuffmanCode\AdaptiveHuffmanCode\Debug\Adaptive.B0E82418.tlog\CL.read.1.tlog

     文件        692  2017-05-07 16:55  AdaptiveHuffmanCode\AdaptiveHuffmanCode\Debug\Adaptive.B0E82418.tlog\CL.write.1.tlog

     文件       1362  2017-05-07 16:55  AdaptiveHuffmanCode\AdaptiveHuffmanCode\Debug\Adaptive.B0E82418.tlog\link.command.1.tlog

     文件       2788  2017-05-07 16:55  AdaptiveHuffmanCode\AdaptiveHuffmanCode\Debug\Adaptive.B0E82418.tlog\link.read.1.tlog

     文件        666  2017-05-07 16:55  AdaptiveHuffmanCode\AdaptiveHuffmanCode\Debug\Adaptive.B0E82418.tlog\link.write.1.tlog

     文件       1521  2017-04-29 01:34  AdaptiveHuffmanCode\AdaptiveHuffmanCode\Debug\AdaptiveHuffmanCode.Build.CppClean.log

     文件       3238  2017-05-07 16:55  AdaptiveHuffmanCode\AdaptiveHuffmanCode\Debug\AdaptiveHuffmanCode.log

     文件     595586  2017-05-07 16:55  AdaptiveHuffmanCode\AdaptiveHuffmanCode\Debug\Source.obj

     文件     297984  2017-05-07 16:55  AdaptiveHuffmanCode\AdaptiveHuffmanCode\Debug\vc120.idb

     文件     446464  2017-05-07 16:55  AdaptiveHuffmanCode\AdaptiveHuffmanCode\Debug\vc120.pdb

     文件        948  2017-04-26 10:05  AdaptiveHuffmanCode\AdaptiveHuffmanCode\Header.h

     文件       5874  2017-04-29 02:18  AdaptiveHuffmanCode\AdaptiveHuffmanCode\Huffman.h

     文件       9134  2017-04-26 22:32  AdaptiveHuffmanCode\AdaptiveHuffmanCode\I have a dream.txt

     文件      47738  2017-05-07 16:55  AdaptiveHuffmanCode\AdaptiveHuffmanCode\result.txt

     文件        365  2017-05-07 16:55  AdaptiveHuffmanCode\AdaptiveHuffmanCode\Source.cpp

     文件       1003  2017-04-18 15:53  AdaptiveHuffmanCode\AdaptiveHuffmanCode.sln

    ..A..H.     30720  2017-05-07 16:58  AdaptiveHuffmanCode\AdaptiveHuffmanCode.v12.suo

     文件     158720  2017-05-07 16:55  AdaptiveHuffmanCode\Debug\AdaptiveHuffmanCode.exe

     文件     679556  2017-05-07 16:55  AdaptiveHuffmanCode\Debug\AdaptiveHuffmanCode.ilk

     文件    1961984  2017-05-07 16:55  AdaptiveHuffmanCode\Debug\AdaptiveHuffmanCode.pdb

     目录          0  2017-05-07 16:55  AdaptiveHuffmanCode\AdaptiveHuffmanCode\Debug\Adaptive.B0E82418.tlog

     目录          0  2017-05-07 16:55  AdaptiveHuffmanCode\AdaptiveHuffmanCode\Debug

     目录          0  2017-05-08 17:07  AdaptiveHuffmanCode\AdaptiveHuffmanCode

     目录          0  2017-05-07 16:55  AdaptiveHuffmanCode\Debug

     目录          0  2017-05-08 17:07  AdaptiveHuffmanCode

----------- ---------  ---------- -----  ----

............此处省略2个文件信息

评论

共有 条评论