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

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

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

  • benchmark+for+DP
    旅行商问题动态规划算法的应用 某售货员要到若干城市去推销商品,已知各城市之间的路程(或旅费)。他要选定一条从驻地出发,经过每个城市一遍,最后回到驻地的路线,使总的路程(或旅费)最小。  (TSP dynamic programming algorithm of a salesman to a number of cities to sell commodities, known the distance between cities (or travel). He selected from a resident, after each city again, the last resident to return to the line, making the total distance (or travel) is the smallest. )
    2007-07-04 11:01:52下载
    积分:1
  • Material_MIS
    物资管理系统,实现物资入库、出库、物资信息的增删查改等。(Materials management system, implementation of materials storage, a library, information material, etc. check the additions and deletions.)
    2009-03-05 20:05:14下载
    积分:1
  • ET199改客户号和ATR
    说明:  修改ET199锁的客户号和ATR值,适用于模拟的ET199锁。(Modify the customer number and ATR of ET199 lock)
    2019-04-10 09:03:33下载
    积分:1
  • 常用数据库访问类 (sql server/mysql/access/oracle)源码下载
    实用数据库访问类,封装常见的数据库访问类助手
    2014-10-23下载
    积分:1
  • AnalyzeData
    AnalyzeData.rar 用例 海康相关的码流解析说明(AnalyzeData.rar use cases related to stream Kang parse the description)
    2013-10-29 13:01:47下载
    积分:1
  • 单片机开发数字钟,电子表功能
    单片机实验:通过C语言开发出单片机数字钟功能,包括:日期,时间,秒表,计时,倒计时,扬声器,闹钟等功能,
    2022-06-27 04:15:06下载
    积分:1
  • beifen_trd3d_OpenGL
    利用OpenGL写的一个机械手的显示运动程序。(Using OpenGL to write a robot motion program display.)
    2013-11-02 11:28:32下载
    积分:1
  • CAN-USB
    CAN总线分析源代码 USB转CAN USBCAN 调试器 (CAN Bus Analyzer USB to CAN USBCAN source code debugger)
    2013-07-09 22:51:28下载
    积分:1
  • usind
    类XP的文件管理器的菜单,用WndDirectUI类建构的可能实用性不是很强,请大家不要P我(XP-like file manager menu, using the WndDirectUI class construction may not be very practical, please do not P I)
    2018-10-27 11:50:10下载
    积分:1
  • Geiger计数器 辐射监测 嵌入式 便携 oled
    Geiger计数器 辐射监测 嵌入式 便携 oled
    2022-02-10 07:16:39下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载