-
Lvxing
一个小的C++应用程序,可选择起点目的地和出行方式并显示结果.供WINDOWS程序设计初级教学使用,熟悉C++工程中映射和变量的添加.(A small C++ application, select the starting point of destination and travel mode and displays the results. For WINDOWS elementary teaching program design using familiar with C++ project to add mapping and variable.)
- 2009-11-08 19:41:16下载
- 积分:1
-
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
-
ruyking__specializations
停止等待试验的源代码,用VB实现,里面有一个现成的实现工程(Stop waiting for the test source code, using VB to achieve, there is a ready-made the implementation of the project)
- 2017-06-16 21:41:43下载
- 积分:1
-
fakeQQ123
全面模仿QQ,基本具备QQ功能,非常值得学习(Fully mimic QQ, with QQ basic functions that are worth learning)
- 2009-02-09 12:46:41下载
- 积分:1
-
knapsackproblem
有不同重量的物品n件,求从这n件物品中任取一部分物品放入背包,使选中的物品的总重量不超过指定的限制重量,但选中物品的价值之合为最大。即任意给定物品个数及它们的重量和价值,在最大的限制重量一定的情况下,为了使价值最大,选出最优解。(There are different weights of items n pieces from n items in order to obtain any portion of the goods into the backpack, so that the total weight of the selected items does not exceed the specified weight limit, but the combined value of selected items as the greatest. That any given number of items and their weight and value limits the maximum weight of certain circumstances, in order to value the most, select the optimal solution.)
- 2010-03-09 08:21:56下载
- 积分:1
-
code
在给定字符串中找出单词( “单词”由小写字母字符大写字母和构成,其他非字母字符视为单词的间隔,
如、问空格号、数字等等;另外单个字母不算单词);找到单词后,按照长度进行降序排序,
(排序时如果长度相同,则按出现的顺序进行排列),然后输出到一个新的字符串中;如果某个单词重复出现多次,
则只输出一次;如果整个输入的字符串中没有找到单词,请输出空串。输出的单词之间使用一个“空格”隔开,
最后一个单词后不加空格。(Identify the word (" word" character from the uppercase and lowercase letters constituted, other non-alphabetic characters as word spacing, such as asking a space number, number, etc. another is not a single letter word) in a given string find words after descending order according to length, (if the same length, the order stated that appears when sorting arranged), and then output to a new string If a word is repeated several times, only output once If the entire input string is not found in word, outputs an empty string. Used between the output of a word " space" separated, no spaces after the last word.)
- 2014-02-23 00:19:04下载
- 积分:1
-
jianpanxianshi
一种基于ISA总线的点阵图形式液晶显示器和键盘的接口模块(POS)
- 2010-05-07 19:04:17下载
- 积分:1
-
COMTestCode
vc环境下COM组件编程小例子,一个文件生成COM组件,另一个文件调用该COM组件。(COM component programming small example, a file generated COM component vc environment, another file to call the COM component.)
- 2013-12-19 16:21:03下载
- 积分:1
-
ResizableFormViewMDI_1_1
一个可以实现VC++中自定义窗口大小的类(One can realize VC++ In custom window size class)
- 2007-09-12 15:22:18下载
- 积分:1
-
DiskKey
得到文件系统的相关注册表键值,并且显示出来(get the register key value of file system and show it. )
- 2005-07-11 16:24:46下载
- 积分:1