登录
首页 » Visual C++ » HuffmanTree

HuffmanTree

于 2013-06-21 发布 文件大小:6371KB
0 162
下载积分: 1 下载次数: 9

代码说明:

  该系统应具有以下功能: (1) I:初始化(Initialization)。从终端读入字符集大小n,以及n个字符和n个权值,建立哈夫曼树,并将它存于文件hfmTree中。 (2) E:编码(Encoding)。利用已建好的哈夫曼树(如不在内存,则从文件hfmTree中读入),对文件ToBeTran中的正文进行编码,然后将结果存入文件CodeFile中。 (3) D:译码(Decoding)。利用已建好的哈夫曼树将文件CodeFile中的代码进行译码,结果存入文件TextFile中。 (4) P:打印代码文件(Print)。将文件CodeFile以紧凑格式显示在终端上,每行50个代码。同时将此字符形式的编码文件写入文件CodePrin中。 (5) T:打印哈夫曼树(Tree printing)。将已在 中的哈夫曼树以直观的方式(树或凹入表形式)显示在终端上,同时将此字符形式的哈夫曼树写入文件TreePrint中。 (The system should have the following features: (1) I: initialization (Initialization). Read from the terminal character set size n, and n and n characters right value, establishes a Huffman tree, and save it in the file hfmTree in. (2) E: encoding (Encoding). Has been built using the Huffman tree (if not in memory, reads from the file hfmTree), the text of the document ToBeTran encoded, and then putting the result in the CodeFile file. (3) D: decoding (Decoding). Huffman tree has been built using the file CodeFile the code will be decoded, the result is stored in the file TextFile. (4) P: Printing code files (Print). CodeFile in a compact format the document displayed on the terminal, one per line 50 code. While this character in the form of written documents CodePrin encoded file in. (5) T: Print Huffman tree (Tree printing). Would have been in the Huffman tree in an intuitive way (tree or recessed table form) displayed on the terminal, but this form of characters written to the file )

文件列表:

哈夫曼编译码
............\Debug
............\.....\哈夫曼编译码.exe,145920,2013-05-10
............\.....\哈夫曼编译码.ilk,756072,2013-05-10
............\.....\哈夫曼编译码.pdb,1010688,2013-05-10
............\ipch
............\....\哈夫曼编译码-ded3779c
............\....\.....................\哈夫曼编译码-65c63503.ipch,28049408,2013-05-10
............\哈夫曼编译码
............\............\CodeFile.txt,61,2013-05-10
............\............\CodePrin.txt,61,2013-05-10
............\............\Debug
............\............\.....\CL.read.1.tlog,13790,2013-05-10
............\............\.....\CL.write.1.tlog,258,2013-05-10
............\............\.....\link.read.1.tlog,2762,2013-05-10
............\............\.....\link.write.1.tlog,448,2013-05-10
............\............\.....\mt.read.1.tlog,1106,2013-05-10
............\............\.....\mt.write.1.tlog,210,2013-05-10
............\............\.....\program.obj,519974,2013-05-10
............\............\.....\vc100.idb,314368,2013-05-10
............\............\.....\vc100.pdb,348160,2013-05-10
............\............\.....\哈夫曼编译码.exe.intermediate.manifest,381,2013-05-10
............\............\.....\哈夫曼编译码.lastbuildstate,58,2013-05-10
............\............\.....\哈夫曼编译码.log,3084,2013-05-10
............\............\htm" target=_blank>hfmTree,217,2013-05-10
............\............\hfmTree.txt,217,2013-05-10
............\............\huffman.h,15501,2013-05-10
............\............\input.txt,400,2013-05-09
............\............\program.cpp,116,2013-05-10
............\............\TextFile.txt,70,2013-05-10
............\............\ToBeTran.txt,18,2013-05-10
............\............\TreePrint.txt,214,2013-05-10
............\............\哈夫曼编译码.vcxproj,3301,2013-05-09
............\............\哈夫曼编译码.vcxproj.filters,1065,2013-05-09
............\............\哈夫曼编译码.vcxproj.user,143,2013-05-09
............\哈夫曼编译码.sdf,9392128,2013-05-10
............\哈夫曼编译码.sln,921,2013-05-09
............\要求.docx,16889,2013-05-09

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

发表评论

0 个回复

  • 5ivb_281405
    利用BarCodeCtrl控件在程序中完成条码打印(BarCodeCtrl control use in the procedure to complete barcode printing)
    2008-01-16 15:52:01下载
    积分:1
  • txprint
    一个图像打印.还有图像预览,图像显示,调去打印机(An image printing. There the image preview, image display, transfer to the printer)
    2011-08-30 12:03:58下载
    积分:1
  • printer
    基于打印的编程 ,利用mfc框架实现,生成自己想要的ui和功能。 (Print-based programming, the use of mfc framework implementation, generate ui and features you want.)
    2014-08-05 13:11:15下载
    积分:1
  • sz
    说明:  5、 打印如下方阵(任选一题)。 (1) 螺旋方阵: 1 2 3 4 12 13 14 5 11 16 15 6 10 9 8 7(it is a C++ file)
    2011-04-15 21:32:44下载
    积分:1
  • Print_calendar
    说明:  在日历中输入日期后,程序自动打印日历的年、月、日。(This program prints a calendar for a year specified int text)
    2010-03-19 11:01:56下载
    积分:1
  • PrintSample11
    模拟随机肥皂泡泡的生成,并可在一个窗口上打印小泡泡。(Simulation of random formation of soap bubbles, and in a small bubble window to print.)
    2007-10-18 13:57:19下载
    积分:1
  • MisGoldPrinterOpenSource
    是一款小巧的打印功能的源码,实现报表打印功能,有打印预览,打印纸张数,自选打印列数等(Is a compact source code printing capabilities to achieve printing functions, a print preview, print, paper number, print out a few other choice)
    2010-07-02 16:27:28下载
    积分:1
  • 57578895vb
    使用VB完成控制软件屏幕打印功能,解决图形打印问题(Completed using the VB control software screen printing, graphic printing problem solving)
    2010-05-05 16:07:09下载
    积分:1
  • MA1
    线性表的操作,包括插入,删除,更改,打印,销毁,得到前驱后继还有规定地址的数据 (Linear table operations, including insert, delete, change, print, destroy, receive predecessor successor address of the data are provided)
    2009-11-16 13:05:47下载
    积分:1
  • seven report
    VC++2005编程实例源代码\第7章 水晶报表开发编程实例,包括水晶报表的各种操作共25个源码实例(VC++ 2005 programming examples of Chapter 7 of the source code to develop programming examples of Crystal Reports, Crystal Reports, including a variety of operating a total of 25 source code examples)
    2008-12-22 13:57:01下载
    积分:1
  • 696522资源总数
  • 104049会员总数
  • 30今日下载