-
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
-
third2
实现一个界面,它能够非常完整的输出这样一个程序,我非常的喜欢他(The realization of an interface, it can be very complete output of such a procedure, I like him very much)
- 2009-06-23 17:16:22下载
- 积分:1
-
QQ
说明: 该文件是编写的QQ的调用程序,放在VC里进行编译执行,它会弹出一个对话框的(the program is QQ the first you can download ,while setup)
- 2011-11-17 22:47:30下载
- 积分:1
-
dhxg
vc窗体的动画效果的程序源码,很不错的demo(vc form animation program source code, very good demo)
- 2011-06-28 06:49:11下载
- 积分:1
-
srf222
Windows下的输入法源码 (The sourcecode for an IME on windows)
- 2020-06-26 11:00:02下载
- 积分:1
-
udfcode
Calculate_wall_shear_stress.c:Fluent udf 用于计算viscosity引起的表面剪切力.
compute_VOF_gradient.c: Fluent udf用于计算和提取VOF梯度.
Define_inlet_velocity.c: Fluent udf用于计算和定义进口速度函数.
Define_moving_Gaussian_source: Fluent udf用于计算和定义随时间和坐标而变化的表面热流密度.
Define_properties_as_functionof_time: Fluent udf用于计算和定义随温度或自定义变量等变化的物质属性.
Define_region_motion: Fluent udf用于计算和定义指定区域移动属性.
Define_wall_pressure: Fluent udf用于计算和定义壁面压力边界条件.(Calculate_wall_shear_stress.c: Fluent udf used to calculate the viscosity caused surface shear force.
compute_VOF_gradient.c: Fluent udf for calculating and extracting VOF gradient. Define_inlet_velocity.c: Fluent udf for calculating and defining inlet velocity function Define_moving_Gaussian_source: Fluent udf for calculating and defining the surface heat flux varying with time and coordinates. Define_properties_as_functionof_time: Fluent udf used to calculate and define the material properties changing with custom variables or temperature. Define_region_motion: Fluent udf used to calculate and define the movement of designated area .
Define_wall_pressure: Fluent udf used to calculate and define the wall pressure boundary condition.)
- 2021-04-16 19:58:53下载
- 积分:1
-
JYJChuKu
针式打印机开发,继承了好多有点 丙炔能打印各种纸张(zhen shi da yi cheng xu kaifa licheng ru guo youmao bing kanchulai qingjiao)
- 2012-04-29 17:16:32下载
- 积分:1
-
VC-experence-summary
VC++的经典技巧总结,乃多年代码经历所成,是精华中的精华,值得所有程序员共享。(The classic skills of VC++ concluded that the code is many years of experience into the best of the best, it is worth all programmers share.)
- 2012-08-01 23:35:46下载
- 积分:1
-
LanChat
局域网聊天工具,网络编程课程作业,需要的下载(LAN chat tools, web programming course work, you need to download)
- 2010-12-10 03:26:35下载
- 积分:1
-
054112OpenNI
kinect 破解必备,OpenNI国外牛人的破解程序,十分好用,(kinect crack essential, OpenNI foreign cattle hack program, very easy to use,)
- 2011-05-07 08:12:09下载
- 积分:1