-
hafuman
一 . 需求分析:
1) 输入形式和输入值范围:
输入形式是要压缩(或者要解压)的文件路径,输入范围是字符串,而且要是文件的路径。
2) 输出形式:
输出相应的编码压缩文件和解码原文件
3) 程序所能达到的功能:
利用哈夫曼对ASCII文件做不等长编码,达到压缩文件。利用哈夫曼树的遍历,达到解压文件的目的。程序的功能也就是实现压缩和解压ASCII类型文件的目的。
4)测试数据:(包括正确的输入数据及其输出结果和含有错误输入及其输出结果)
测试输入或者输出文本框是不是有空的,是不是不是有效路径。进行条件判断,实现错误处理。
比如要压缩:c:a.txt 文件路径就是:c:a.txt。如果输入框是空的,就判断,然后用MessageBox处理信息。
如果文件路径和文件的输出路径都写正确的话,就会输出相应的压缩或者解压文件,否则用函数MessageBox提示错误。然后进行更正。
二 . 概要设计:
1) 哈夫曼树的特点
a) 是二叉树的一种,而且是一种没有度数是1的二叉树
b) 一棵树有n个叶子,就会用2n-1个节点
c) 一种“最优”二叉树,由于树的带权路径(WPL)最小
d) 由于它是由下到上顺序构造的,使得分支节点和叶子节点从下到上,权值都是从小到大的顺序排列的
()
- 2007-07-16 22:04:12下载
- 积分:1
-
sipproxd-win32
移植的一个基于osip,使用vc编译的siproxd服务器软件(port siproxd to win32, compiled using vc)
- 2009-07-02 22:31:48下载
- 积分:1
-
vb6_black_book
It is the best black book if vb 6
- 2009-10-25 10:37:41下载
- 积分:1
-
CurveDrawing
利用VC++编程实现样条曲线的绘制实例,源代码编译于VC++6.0,通过测试发现本示例程序距真正的“手绘”曲线还有一段距离,甚至说它是全自动的,也就是选择生成选项后,程序是自动生成的曲线,可以对生成的曲线进行位置移动,倍数放大等,但不能用鼠标手动去改变它们的形态,源代码收集于国外,仅供学习参考。(Using VC++ Programming-spline curve drawing examples, source code in VC++6.0, to pass the test procedures found in this example from the real " hand-painted" curve is still some time before, or even that it is fully automated, is the choice of generation options, the process is auto-generated curve, the curve can be generated for the location of the mobile, such as a multiple of amplification, but not manually with the mouse to change their form, source code are collected in foreign countries, only to learn the reference .)
- 2020-10-10 17:27:33下载
- 积分:1
-
Server
一个类似飞鸽传书的小程序 其中的SERVER端 一会上传Client(studay ..)
- 2012-06-05 11:47:56下载
- 积分:1
-
SourceCodeStatisticTool
源代码统计工具,可以统计指定目录下原代码文件的个数、行数。文件后缀可自行设置(source statistical tools, statistics can be designated directory source code, document number, the number of rows. File extension can be set up on their own)
- 2006-12-13 08:16:23下载
- 积分:1
-
filerandomreadandwrite
这是一个Visual C++编写的实现文件随寄存储的小程序,在Visual C++6.0中编译通过.(This is a Visual C achieve document prepared by the pin with a small storage procedures, Visual C 6.0 compile.)
- 2006-08-20 19:22:01下载
- 积分:1
-
UDF
FLUENT中的源项UDF,初学UDF可以下载下来学学。(this is a source UDF,IF you want it you can download .thank you! )
- 2020-12-05 15:39:22下载
- 积分:1
-
CPP
C++控件大全方便你的查询 易于理解学习是我们的好助手(C++ control Daquan easy to learn easy to understand your query is a good assistant)
- 2011-04-26 21:17:35下载
- 积分:1
-
CSaveTest
.ini文件生成程序,可用于自动生成.ini文件并存储VC控件中间过程数据。(. ini file generation process can be used to automatically generate. ini file and process data stored in the middle of VC control.)
- 2014-02-26 16:06:57下载
- 积分:1