登录
首页 » Visual C++ » hafuman

hafuman

于 2007-07-16 发布 文件大小:254KB
0 78
下载积分: 1 下载次数: 19

代码说明:

  一 . 需求分析: 1) 输入形式和输入值范围: 输入形式是要压缩(或者要解压)的文件路径,输入范围是字符串,而且要是文件的路径。 2) 输出形式: 输出相应的编码压缩文件和解码原文件 3) 程序所能达到的功能: 利用哈夫曼对ASCII文件做不等长编码,达到压缩文件。利用哈夫曼树的遍历,达到解压文件的目的。程序的功能也就是实现压缩和解压ASCII类型文件的目的。 4)测试数据:(包括正确的输入数据及其输出结果和含有错误输入及其输出结果) 测试输入或者输出文本框是不是有空的,是不是不是有效路径。进行条件判断,实现错误处理。 比如要压缩:c:a.txt 文件路径就是:c:a.txt。如果输入框是空的,就判断,然后用MessageBox处理信息。 如果文件路径和文件的输出路径都写正确的话,就会输出相应的压缩或者解压文件,否则用函数MessageBox提示错误。然后进行更正。 二 . 概要设计: 1) 哈夫曼树的特点 a) 是二叉树的一种,而且是一种没有度数是1的二叉树 b) 一棵树有n个叶子,就会用2n-1个节点 c) 一种“最优”二叉树,由于树的带权路径(WPL)最小 d) 由于它是由下到上顺序构造的,使得分支节点和叶子节点从下到上,权值都是从小到大的顺序排列的 ()

文件列表:

复件 (2) 课程设计报告.doc

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

发表评论

0 个回复

  • CLOCK
    以实例为背景学习基于MFC的WINDOWS应用程序设计,编写一个模拟时钟程序,此程序在屏幕左边有一个指针式钟面,右方有两个矩形框,上面以数字方式显示日期和时间,该时间应与指针显示的时间一致,下方的矩形框作为秒表。用菜单选项或按钮设置时间和秒表。时间不必与机器系统时间相同,可任意设置。(Background-instance learning WINDOWS MFC-based application design, the preparation of an analog clock program, this program has a pointer on the screen on the left clock face, on the right there are two rectangular box, above digitally display the date and time, which should be consistent with the pointer display time, and the lower rectangular box as a stopwatch. With a menu option or button to set the time and stopwatch. Time Machine does not have the same system time can be set arbitrarily.)
    2013-10-17 15:52:11下载
    积分:1
  • ItoPRE
    将中缀表达式转化为后缀表达式、并计算结果(The infix expressions into postfix expression, and the results)
    2014-04-22 21:07:15下载
    积分:1
  • youxi
    人机对弈,互取火柴。取最后一根者输。每次至少取一根,最多取4跟。如果人先取则人必输。如果机先取,则机器等待人出错。否则人胜。(Human-computer game, and take matches. The last one loses. Check at least one of each, with up to 4 check. If the person is who will get lost. If the machine to check, then wait for others to machine error. Otherwise, people win.)
    2009-04-10 15:50:28下载
    积分:1
  • Contrast
    说明:  是一个图片见面预览,模拟工业触摸屏的画面,所以画面元素比较单一,但是仅仅做预览效果不错(Is an image preview meeting, simulation of industrial touch-screen picture, so the image elements of relatively simple, but only to do a good preview)
    2009-09-01 19:42:13下载
    积分:1
  • LimitlessRemote
    手机无线控制电脑...............(my English is poor)
    2015-10-17 13:31:52下载
    积分:1
  • pm-compuprint-sp40
    P2R打印机串口指令集编程手册,Olivetti/IBM/Epson(P2R printer serial instruction set programming manual, Olivetti/IBM/Epson)
    2010-06-11 09:51:04下载
    积分:1
  • testDShow
    vc6.0下基于directshow的图像采集程序,项目内部包含了directshow相关库。大家知道的,directshow,模块现在不包含在directX内了,而且配置麻烦,很容易有各种问题的。这个程序在win7-32bit 和WinXP 都ok(vc6.0 under directshow based image acquisition process, the project contains internal directshow related libraries. We all know, directshow, the module is not included in directX now within it, and configure the trouble, it is likely to have a variety of issues. This program in win7-32bit and WinXP are ok)
    2013-06-27 12:45:09下载
    积分:1
  • chengxuzhucebianji
    一个用VB编写的程序注册检测小程序.希望大家喜欢.(with a VB program registration procedures for detecting small. Hope you like them.)
    2007-03-17 21:23:54下载
    积分:1
  • CartoonParse
    闹钟程序,定时关机功能,也是处理bitmap的经典代码,有透明背景效果(Alarm procedures, timing shutdown function, but also deal with the classic bitmap code, there is a transparent background effects)
    2009-03-26 23:56:12下载
    积分:1
  • TreeCtrl
    树形控件,可以插入头像,利用该控件可以实现类似QQ好友列表的功能(Tree class, it can show img at every item,you can use it to make friends list box like QQ)
    2013-12-09 11:26:32下载
    积分:1
  • 696522资源总数
  • 104031会员总数
  • 39今日下载