登录
首页 » Visual C++ » cpp

cpp

于 2013-12-01 发布 文件大小:5213KB
0 172
下载积分: 1 下载次数: 6

代码说明:

  首先通过文件操作,读取文件内容,把字符逐个提取后统计字符频率,建立哈夫曼树和进行哈夫曼编码,当然这是根据ASCII编码来将字符转换为二进制,然后实现前缀编码,然后把编码后的使用二进制流写入相应文件(First through file operations, read the file content, the characters one by one after extracting character frequency statistics, establish a Huffman tree and Huffman encoding, and, of course, this is according to ASCII code to convert characters to the binary, then realize the prefix encoding, and then the encoded using binary stream into the corresponding files )

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • FileSplitter
    文件的分割,可以将任何文件分割成几个部分(The segmentation of the file, any file can be split into several parts)
    2012-02-10 11:35:22下载
    积分:1
  • FileAlarm_demo
    文件修改的监视(The example of monitoring the change of files)
    2020-07-02 01:40:01下载
    积分:1
  • FileCompare
    读取两个文件,比较其中的相同单词和出现次数及频率,并将结果保存到文件(Read the two documents, which compare the same words and the number and frequency of appearance, and save the results to a file)
    2013-07-12 21:51:36下载
    积分:1
  • OperateFile
    VC++拷贝、删除和移动文件的演示,呵,虽然很简单,但是很基础 ,每一个VC的编程高手都是从这里学起的,不要小看它简单,当初本人也研究了两天呢(VC++ copy, delete and move files in the demo, oh, although very simple, but very basic, every VC is a master of programming by learning from here, do not underestimate it simple, I had also studied it for two days)
    2011-04-25 21:33:42下载
    积分:1
  • FileDialog
    由文本读出,并将其16进制内容转化为10进制,最后画曲线显示。(read the HEX data from the file,then change then to BIN format,lastly draw the curve according to the data.)
    2009-02-17 22:31:40下载
    积分:1
  • AttehsFinalProject
    Encryption and Decryption of files are streamlined to RSA, KS1 and KS2 formats
    2009-12-23 02:36:18下载
    积分:1
  • 5294996
    制作的一个酷似于XP按钮的程序源代码,一个很好用的东东,()
    2017-11-03 14:45:30下载
    积分:1
  • SelDEL
    实现在程序运行完毕后,删除自身exe文件.适用于需要时间限制类程序.(Time limit for applications that require such procedures in the program is complete, delete the exe file.)
    2013-05-19 10:22:03下载
    积分:1
  • Decimal_Binary
    软件技术基础中的十进制转二进制问题,简单的将十进制数转化为二进制数。 (Software technology base in decimal to binary problem, a simple decimal number into a binary number.)
    2013-12-18 17:07:56下载
    积分:1
  • newsfile
    用于文件的搜索,主要是文件目录下搜索文件名(for file searching,the main of function is that searching the name of files)
    2009-06-11 19:25:17下载
    积分:1
  • 696518资源总数
  • 105549会员总数
  • 12今日下载