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

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

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

  • 500彩票源码
    500彩票网站源码,iis+asp.net+mssql可正常运行。
    2022-12-27 12:50:05下载
    积分:1
  • render
    GMS社区 846465456894897(GMS community 846465456894897)
    2008-03-02 10:51:00下载
    积分:1
  • disparity-map
    利用matlab立体匹配,可获得立体图像左右视图的视差图代码,效果不错 (Matlab matching around view of the three-dimensional image can be obtained disparity map code, good results)
    2013-03-24 10:37:34下载
    积分:1
  • PROGRAMMATION-cPP-et-genie-logiciel
    book to learn Visual c++ and logiciel
    2014-02-19 12:13:40下载
    积分:1
  • Gauss
    背景建模 混合高斯模型 opencv代码和matlab代码(Background modeling Gaussian mixture model opencv code and matlab code)
    2014-10-28 18:52:26下载
    积分:1
  • Bit_Map
    实现了手机Gps客户端,可以接受并解析Gps信号,显示在线地图和实时路况(Mobile Gps achieve client can accept and parse the Gps signal, display online maps and real-time traffic)
    2010-08-02 11:07:56下载
    积分:1
  • HH_Lib_Test
    一个用于C#系统硬件设备管理(监视,启用,禁用)的源代码库(A source code library for the management (monitoring, enable, disable) of the hardware equipment of the C?system)
    2020-06-18 23:40:02下载
    积分:1
  • 道路汽车压线检测
    随着中国汽车量的增加,交通管理越来越困难。逐渐的,人们开始希望用智能化的角度去管理。
    2022-10-25 07:15:03下载
    积分:1
  • Equation_Editor_Code
    Equation_Editor_CodeEquation_Editor_CodeEquation_Editor_Code
    2023-07-30 01:35:04下载
    积分:1
  • Legend-2
    AE 实现图例功能............ (AE legend)
    2013-12-10 21:58:10下载
    积分:1
  • 696516资源总数
  • 106658会员总数
  • 16今日下载