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

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

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

  • zbcpe730
    BCGPEdit(BCGSoft Professional Editor)是一款MFC(微软基础类)扩展库,用于在基于MFC的程序中加入高级编辑控制。编辑控制支持高亮度语法,外轮廓以及智能感应(BCCPEdit(BCGSoft Professional Editor) is MFC(microsoft fundamental class)extended library,and is used in adding advanced edit control into program based MFC. Edit control has the funtion of highlight syntex, outline and intelligence inducting and so on.)
    2005-06-01 14:15:18下载
    积分:1
  • AN70983
    赛普拉斯批量传输的软件程序,初学者使用,,,(Cypress batch transfer software program for beginners)
    2020-06-18 13:20:02下载
    积分:1
  • asp.net中以二进制方式读取文件
    asp.net中以二进制方式读取文件-were Asp. Net in binary mode, read files
    2022-11-29 12:35:03下载
    积分:1
  • C++Builder基础进阶是关于C++Builder编程的基础教材,适合初级的C++Builder爱好者...
    C++Builder基础进阶是关于C++Builder编程的基础教材,适合初级的C++Builder爱好者-Advanced C Builder is based on the C programming Builder based materials suitable for junior C Builder lovers
    2022-01-30 10:24:01下载
    积分:1
  • Timer-IR-decoding
    通过定时器对任意红外遥控器解码,无等待延时,高效快捷。也可以一直到433/315解码当中。(By timer for any infrared remote control decoding, without waiting for the delay, effective and efficient.)
    2014-08-23 14:33:37下载
    积分:1
  • LTC6811G-1-PCB
    说明:  LTC6811,完整测试板原理图与pcb设计图。(LTC6811 Multicell Battery Monitors)
    2021-04-06 16:29:02下载
    积分:1
  • 超声波测距
    已经过测试      上传来大家一起学习一下
    2022-11-26 22:50:08下载
    积分:1
  • DIP(Visual-CPP)
    本书主要讲述如何使用Visual C++进行数字图像处理。全书对常用的数字图像处理算法进行了介绍。(This book focuses on how to use Visual C++ digital image processing. The book is commonly used digital image processing algorithms were introduced.)
    2016-02-19 23:25:32下载
    积分:1
  • matlab
    PUDN XIEXIE西南交通大学赵宏宇老师的教学课件(ORIGIN OF SEJTU.)
    2010-07-15 17:23:46下载
    积分:1
  • kernel_debugging_tutorial
    windbg的使用文档.目前而言,本人认为是最全面的文档了(use of windbg documentation. now, I think is the most comprehensive documentation of the)
    2007-09-05 15:09:12下载
    积分:1
  • 696518资源总数
  • 105559会员总数
  • 1今日下载