-
一 . 需求分析:
1) 输入形式和输入值范围:
输入形式是要压缩(或者要解压)的文件路径,输入范围是字符串,而且要是文件的路径。
2) 输...
一 . 需求分析:
1) 输入形式和输入值范围:
输入形式是要压缩(或者要解压)的文件路径,输入范围是字符串,而且要是文件的路径。
2) 输出形式:
输出相应的编码压缩文件和解码原文件
3) 程序所能达到的功能:
利用哈夫曼对ASCII文件做不等长编码,达到压缩文件。利用哈夫曼树的遍历,达到解压文件的目的。程序的功能也就是实现压缩和解压ASCII类型文件的目的。
4)测试数据:(包括正确的输入数据及其输出结果和含有错误输入及其输出结果)
测试输入或者输出文本框是不是有空的,是不是不是有效路径。进行条件判断,实现错误处理。
比如要压缩:c:a.txt 文件路径就是:c:a.txt。如果输入框是空的,就判断,然后用MessageBox处理信息。
如果文件路径和文件的输出路径都写正确的话,就会输出相应的压缩或者解压文件,否则用函数MessageBox提示错误。然后进行更正。
二 . 概要设计:
1) 哈夫曼树的特点
a) 是二叉树的一种,而且是一种没有度数是1的二叉树
b) 一棵树有n个叶子,就会用2n-1个节点
c) 一种“最优”二叉树,由于树的带权路径(WPL)最小
d) 由于它是由下到上顺序构造的,使得分支节点和叶子节点从下到上,权值都是从小到大的顺序排列的
- 2022-03-21 06:23:05下载
- 积分:1
-
ADPCM音频编解码器,使用标准的C语言编程,实现了G.711,g.72 3,…
音频ADPCM编解码器,采用标准C语言编程,实现G.711,G.72 3,16K,24K,32K算法-ADPCM audio codec, using standard C language programming, realize G.711, G.72 3,16 K, 24K, 32K Algorithm
- 2022-01-25 18:36:54下载
- 积分:1
-
overclocking tool, the best source code
超频工具,最佳源代码-overclocking tool, the best source code
- 2023-03-20 17:20:08下载
- 积分:1
-
混沌控制、混沌同步仿真程序混沌控制、混沌同步仿真程序
混沌控制、混沌同步仿真程序混沌控制、混沌同步仿真程序-Chaos control, chaos synchronization simulation program
- 2022-03-12 21:49:41下载
- 积分:1
-
这是一款很实用的报表设计器,功能强大!完全用C#编写,运行在微软DOTNET框架1.1的环境下,实现了很多新型报表工具应当具有的特点。...
这是一款很实用的报表设计器,功能强大!完全用C#编写,运行在微软DOTNET框架1.1的环境下,实现了很多新型报表工具应当具有的特点。-This is a very practical design for the statements, powerful! C# fully prepared, Microsoft DOTNET operation in the framework of the 1.1 environment, achieving many of the new tools statements should have characteristics.
- 2022-03-31 20:26:27下载
- 积分:1
-
这是一个基于LZARI算法的数据压缩的类.Haruhiko Okumura 于1989年7月4日用C语言写实现了这个算法.但是上面用到了一些全局或静态的变量,在...
这是一个基于LZARI算法的数据压缩的类.Haruhiko Okumura 于1989年7月4日用C语言写实现了这个算法.但是上面用到了一些全局或静态的变量,在MFC下用起来很不方便.作者把它改写成了一个C++类,使它可以方便的压缩和解压缩。-LZARI algorithm based on the type of data compression. Haruhiko SAP in 1989, July 4 C language daily wrote realization of this algorithm. But above uses some static or global variables, using the MFC which are very convenient. Authors rewrite it became a category C, it can be to facilitate the compression.
- 2022-07-18 10:03:51下载
- 积分:1
-
SharpZipLib之前叫做NZipLib,完全由 C# 开发的压缩库,支持Zip, GZip, Tar and BZip2 ,为2007年8月最新0852r...
SharpZipLib之前叫做NZipLib,完全由 C# 开发的压缩库,支持Zip, GZip, Tar and BZip2 ,为2007年8月最新0852release版的代码实例!
Changes for v0.85.2 release
Minor tweaks for CF, ZipEntryFactory and ZipFile.
Fix for zip testing and Zip64 local header patching.
FastZip revamped to handle file attributes on extract + other fixes
Null ref in path filter fixed.
Extra data handling fixes
Revamped build and conditional compilation handling
Many bug fixes for Zip64.
Minor improvements to C# samples.
ZIP-1341 Non ascii zip password handling fix.
ZIP-355 Fix for zip compression problem at low levels
-SharpZipLib called before NZipLib, entirely by the C# Compression library developed to support the Zip, GZip, Tar and BZip2, for in August 2007 the latest version of the code examples 0852release! Changes for v0.85.2 releaseMinor tweaks for CF, ZipEntryFactory and ZipFile.Fix for zip testing and Zip64 local header patching.FastZip revamped to handle file attributes on extract+ Other fixesNull ref in path filte
- 2022-04-29 16:52:15下载
- 积分:1
-
zip解压源码.
zip解压源码.-zip unpacked source.
- 2023-08-09 16:05:02下载
- 积分:1
-
JSP加Servlet加javabeen经典入门源码
JSP加Servlet加javabeen经典入门源码-jsp-servlet-javabean
- 2022-04-29 01:03:40下载
- 积分:1
-
perl中编译使用zlib
perl中编译使用zlib -Using zlib in perl compile
- 2022-05-27 13:34:08下载
- 积分:1