登录
首页 » Visual C++ » hafuman

hafuman

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

  • brickShader
    实现了一个简单的brick shader(umolement a simple brick shader)
    2020-10-17 20:47:27下载
    积分:1
  • 01205skin-source
    用VC写的关于皮肤的程序框架,很好用,可以直接修改.(Written with the VC on the skin of the procedural framework, useful, can be directly modified.)
    2010-07-22 23:34:06下载
    积分:1
  • sniffer
    说明:  VC++编程实现网络嗅探器 简单 但是完整可运行。比较基础(VC++ programming for network sniffer)
    2011-03-11 09:47:09下载
    积分:1
  • guidedfilter_vc
    本文件为引导滤波算法的程序文件,为VC++编码,根据何凯明博士的文章《Guided Image Filtering》讲述的原理编写而成,具有很好的边缘保持特性,是作为作者在前一篇讲解去雾算法的文章《Single Image Haze Removal Using Dark Channel Prior》的补充,当然也可以用于其他的滤波算法中(This document is a boot file filtering algorithm for VC++ coding, according to Dr. He Kaiming article " Guided Image Filtering" principle tells prepared, with good edge retention characteristics, as an explanation of the previous algorithm decontamination The article " Single Image Haze Removal Using Dark Channel Prior" supplement, of course, can also be used for other filtering algorithms)
    2021-04-22 18:08:48下载
    积分:1
  • SurfaceConstructor-1.1
    从多张图像的轮廓重建3D物体,代码运行鲁棒,几乎没有Bug.(Images from more than the outline of the reconstruction of 3D objects, robust code to run, almost no Bug.)
    2020-07-01 23:40:02下载
    积分:1
  • DUNK!!!
    能对输入的两个数进行任意的四则运算,输入数字和符号即可(to the importation of two arbitrary number of the four operations, the importation of figures and symbols can be)
    2006-10-30 23:24:29下载
    积分:1
  • LOL防封
    说明:  LOL防封,可以参考研究,不能直接用要更新(Lol is sealed, research-ready, not ready to be updated)
    2020-03-02 12:04:05下载
    积分:1
  • CreateDll
    创建c++动态链接库,注意模块文件的应用,怎么调用动态链接库(Create c++ dynamic link library module files the application note, how to call a dynamic link library)
    2015-05-05 14:04:52下载
    积分:1
  • 666HOTEL
    vc++的课程设计,做的简单的酒店管理系统(vc++ in curriculum design, to do a simple hotel management system)
    2009-12-17 20:07:42下载
    积分:1
  • regedit-hive
    1. 内存中操作Hive, 而非操作磁盘hive. 比同等的Hive解析工具(eg.狙剑)速度快. 2. 操作方式和windows自带的regedit.exe相同, 而同等的工具仅列出hive对应的项,一般用户不知如何使用 3. 支持整个子键(Key) / 键值(Values) 的删除,增加,修改,重命名. 而同等的工具考虑到安全性,没有加入对Key的删除/增加 操作 4. 没有特殊情况的话,能发现一切注册表隐藏信息,解析hive的都能做到. 5. 查找功能没有暴搜hive数据结构,换用常规API. (1. Memory operation Hive, rather than the operation of the disk hive. Than analytical tools Hive same (eg. sword spy) speed. 2. Operation of regedit.exe and windows bring the same tools and the same list only hive the corresponding item, the general users do not know how to use 3. in support of the entire sub-key (Key)/key (Values) to delete, add, modify, rename. and the same tools to take into account security, do not add the delete Key/increase in operation 4. the absence of exceptional circumstances, then, to discover all the hidden registry information, are able to resolve the hive. 5. Find hive found no storm data structure, for conventional API.)
    2009-07-08 10:17:51下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载