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

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

于 2022-07-14 发布 文件大小:6.89 kB
0 137
下载积分: 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 个回复

  • USBtest
    USBtest,USB测试程序,可以一看(USBtest, USB testing procedures, you can watch one)
    2007-08-31 09:19:36下载
    积分:1
  • cvSamplePeopleDetect
    opencv识别行人实例代码,需要自行加opencv的库,即可使用。(It s an opencv example code of Pedestrian recognition , you need to add their own opencv library to use.)
    2013-12-03 09:48:41下载
    积分:1
  • svpwm_dsp01
    三相交流,SVPWM整流,dsp28335程序实现。(SVPWM,AC,DSP28335,CCS,AC-DC)
    2021-04-20 16:18:50下载
    积分:1
  • STC15-LCD12864
    STC15单片机驱动LCD12864,并且是使用串口通信协议,节约IO口,亲测可用(STC15 microcontroller driven LCD12864, and you are using serial communication protocol, save IO ports, pro-test available)
    2020-09-13 13:57:58下载
    积分:1
  • c#的文件传输源码 c#的文件传输源码
    c#的文件传输源码 c#的文件传输源码-c# file transfer source c# file transfer source
    2022-10-27 22:10:04下载
    积分:1
  • 000971
    语音识别,实现语音的识别功能,,特定人的语音识别。识别0~9的发音(Speech recognition, voice recognition function, a particular person' s speech recognition. Identify the pronunciation of 0 to 9)
    2011-05-13 11:01:54下载
    积分:1
  • admin
    通过SOCKET通讯,采用事件通知处理,异步从服务器获取Flash。(Get FLash from server)
    2012-03-13 11:46:33下载
    积分:1
  • 优化版
    2015年大学生电子创新大赛电源题,双向DC-DC可以实现充放电功能和步进功能。可以很好的调控输出电压、电流。(2015-year college students electronic innovation competition power supply, two-way dc-dc can achieve charging and discharging function and step function. Can very good control output voltage, current.)
    2020-06-22 20:40:02下载
    积分:1
  • PLC梯形图编辑器
    PLC梯形图编辑器
    2019-09-09下载
    积分:1
  • matc
    matrix inversion source code
    2012-02-02 18:09:20下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载