登录
首页 » C# » 背包问题:一. 需求分析1.本程序中,表示背包和物品的元素限定为实型,物品的多少不限(可通过改变宏选择适当的数组长度).2.程序由用户和计算机的对话方式执行,在...

背包问题:一. 需求分析1.本程序中,表示背包和物品的元素限定为实型,物品的多少不限(可通过改变宏选择适当的数组长度).2.程序由用户和计算机的对话方式执行,在...

于 2022-07-14 发布 文件大小:6.89 kB
0 100
下载积分: 2 下载次数: 1

代码说明:

背包问题:一. 需求分析1.本程序中,表示背包和物品的元素限定为实型,物品的多少不限(可通过改变宏选择适当的数组长度).2.程序由用户和计算机的对话方式执行,在计算机的提示信息下由用户在键盘上输入规定的运算命令,相应的输入数据和运算结果显示在其后。3.程序执行的命令包括:1) 构造物品数组及相应的标识数组2) 对数组的当前状态求和3) 打印出所有符合要求的结果4.测试数据实型的任意数据均可,不能输入字符型数据-knapsack problem : 1. A needs analysis. This procedure, said the backpack and items elements is limited to type, the number of open-items (available through Acer change the selection of appropriate length of the array). 2. Procedures by the user and computer dialogue approach to the implementation of the computer under the message by the user at the keyboard input on the operation order, the corresponding input data and computing results in the following. 3. Procedures for the implementation of the order include : 1) Construction items array and the corresponding array logo 2) to the current status of the array summation 3) Print out to meet the requirements of all four results. Test data is the type of data can be arbitrary, can not be imported for character data

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • stm32_ADC_own
    the ADC module of STM32F103ZE own.
    2013-08-26 20:42:25下载
    积分:1
  • Honeywell-19001
    霍尔维尼二维的激光平台,不是手持版的。。(Hall Pooh dimensional laser platform)
    2014-08-31 21:37:53下载
    积分:1
  • c#实现的记事本代码,实现了应该具备的基本功能
    用c#实现的记事本代码,实现了应该具备的基本功能-Achieved with the c# code in Notepad, to realize the basic functions should have
    2022-07-02 13:34:14下载
    积分:1
  • OVT_MSD7C51G_SHEL5_V1.04(2014.10.16)
    有线电视机顶盒完美设计,1080p的设计,一定是商业版本的!(Cable box perfect design, 1080p is designed, it must be commercial version!)
    2015-12-24 13:28:24下载
    积分:1
  • 27796696tdxplugin
    TDX plugin 这是一个实例,如何开发TDX的插件(TDX plugin)
    2010-11-12 09:18:31下载
    积分:1
  • power-flow
    说明:  c语言,电力系统潮流计算程序,通用,工程开发应用使用(power flow calculator)
    2011-03-24 18:21:05下载
    积分:1
  • Floating-point-complex-radix-2-decimation-in-time-
    浮点复数基2时分FFT完成适当的FFT,输出改写输入缓冲器。(floating-point complex FFT-based two hours to complete the FFT output rewritten input buffer.)
    2006-08-07 14:19:25下载
    积分:1
  • mohuFCM
    基于matlab的模糊均值C的聚类程序,可以实现彩色图像的聚类,能实现程序时间统计(Matlab-based fuzzy mean C clustering procedures, can achieve color image clustering, to achieve the program time statistics)
    2013-05-23 11:10:59下载
    积分:1
  • Mtalab透视变换
    倾斜校正,一定要有标定点,将一个倾斜的矩形变为不倾斜的。因此可以从原四边形四个点和新矩形四个点得到一个变换矩阵,根据这个矩阵再作用到全局图像就可以了。详细原理在这里,MIT的,我也不会比他介绍的更好了,还是看原版的好。
    2023-01-08 15:55:03下载
    积分:1
  • haffman
    对输入的字符进行哈弗曼编码,生成编码表,计算压缩比等(haffman tree)
    2011-08-30 14:10:52下载
    积分:1
  • 696516资源总数
  • 106442会员总数
  • 11今日下载