登录
首页 » Visual C++ » cpp

cpp

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

代码说明:

  首先通过文件操作,读取文件内容,把字符逐个提取后统计字符频率,建立哈夫曼树和进行哈夫曼编码,当然这是根据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 个回复

  • Clist
    一个vc下的汉字转十六进制的小程序,希望对大家有帮助(A vc transfer hexadecimal characters under a small program, we want to help)
    2009-09-24 10:14:09下载
    积分:1
  • info
    说明:  日常工作中用于拆分文件中数据和统计工作量的小程序(Daily work for the Resolution of the document the workload of data and statistics applets)
    2008-08-27 21:26:56下载
    积分:1
  • moqso
    说明:  
    2017-11-04 20:43:32下载
    积分: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
  • vcTxtsrc
    VC++逐行读取Txt文本文件,只是一个读写方式的不同,总之最终的目标是读取整个文件(VC++ read line by line Txt text file, just a different way of reading and writing, in short, the ultimate goal is to read the entire document)
    2013-10-28 19:46:43下载
    积分:1
  • FileAttribute
    vc——获取文件的属性FileAttribute(vc- get file attributes FileAttribute)
    2011-07-30 18:54:15下载
    积分:1
  • matio-1.5.2
    读取.mat数据文件的库,很好用,很简单。(matio is an C library for reading and writing Matlab MAT files. It is usefull , and very easy to use.)
    2013-12-23 16:05:37下载
    积分:1
  • 内存映射演示
    演示内存映射文件的使用,对内存映射文件作了详细说明(demo memory map documents the use of memory mapping document elaborated)
    2005-06-01 09:24:40下载
    积分:1
  • vbscripd
    在VB中,使用vbscript,jscript等脚本语言,你可以在你的程序中,(In VB, using vbscript, jscript scripting language, such as you can in your program,)
    2017-06-17 10:46:09下载
    积分:1
  • NaN
    对于转换为文本数据的文件,去除数据文件中的非正常值(The data is converted to text files, removing a non-normal data file)
    2010-07-02 10:40:52下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载