登录
首页 » Visual C++ » hafuman

hafuman

于 2007-07-16 发布 文件大小:254KB
0 254
下载积分: 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 个回复

  • tongxun
    用winsock实现两机通讯的一个小软件 特别简单 不再具体介绍(Winsock implementation to use two planes, a small communications software in particular is no longer easy introduction of specific)
    2009-03-06 09:33:16下载
    积分:1
  • load_Sys
    说明:  驱动程序加载卸载工具 编写RootKit加载驱动程序的测试工具 自己写的(Driver loading and unloading tools prepared RootKit driver load testing tool wrote it myself)
    2008-10-02 12:55:44下载
    积分:1
  • sclcqj1.0
    VB排课源代码,附人工+排课系统说明书。(Arranging VB source code, with instructions manual+ Arrangement System)
    2010-10-10 21:13:00下载
    积分:1
  • exoosg
    exercis on osg programing in visuel basic c++
    2013-11-09 19:19:42下载
    积分:1
  • psexec
    大名鼎鼎的psexec软件vc源码,windows出品(The famous the psexec software vc source, windows produced)
    2021-02-20 10:39:43下载
    积分:1
  • 1097317117
    大理石晶化作業流程改善與標準工時量測 改善工作流程,並訂定標準工時(Marble crystallization processes to improve the measurement and standard working hours to improve the work flow, and set the standard working hours)
    2010-11-03 09:06:18下载
    积分:1
  • yanzhengma
    验证码其中的一个文件求大神告知,主要想下个源码,谢谢(The verification code in which a file seek God inform, mainly want the next source, thank you)
    2013-04-03 19:27:17下载
    积分:1
  • DVRServerCenter
    完成端口服务器,支持同步发送接收,支持内存池,支持简单丢包算法。(Completion port server to support simultaneous sending and receiving, support memory pool to support a simple algorithm for packet loss.)
    2010-01-08 14:22:45下载
    积分:1
  • 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
  • geos-3.3.3
    geo 3.3.3 最新版本。通常用于GIS开发。(geo 3.3.3 the latest version. Typically used for GIS development.)
    2012-04-26 14:47:23下载
    积分:1
  • 696516资源总数
  • 106428会员总数
  • 7今日下载