登录
首页 » 数据结构 » 问题描述:假设一个商店,有一个架子和一个仓库,当第…

问题描述:假设一个商店,有一个架子和一个仓库,当第…

于 2022-07-13 发布 文件大小:2.28 kB
0 199
下载积分: 2 下载次数: 1

代码说明:

问题描述: 假设一个商店,它有一个货架和一个仓库,当货架上的商品数量少于一定的数目时,从仓库运一定数量的商品摆到货架上,当仓库里的商品的数量少于一定的数目时,购买商品把仓库填满,商品的出售要按照商品的生产日期来,快要过期的商品要先出售。 解决问题的方法: 用了两个栈和 一个队列,把队列当作仓库,用一个栈作为货架,把另一个栈当作临时的存储箱。当要往货架上添商品时,先把作为货架的栈中的元素全都压到作为存储箱的栈中,再把仓库中的元素压到存储箱中,然后再把存储箱中的所有元素都压到货架上,这样,就能保证快要过期的商品先被出售。-Problem description : Suppose a shop, which has a shelf and a warehouse, when the merchandise on the shelves less than a certain quantity of the number, a certain number from the warehouses of goods on the shelves, when the warehouse volume of goods is less than certain number, purchase goods warehouse filled, the goods according to the sale of commodity production to date, is about to expire first sale of goods. The solution : a two stack and a queue, queue as a warehouse, used as a stack shelves, and another stack as a temporary storage bins. When to go to the shelves Tim commodity, first as a stack shelves of all elements of the pressure storage tank as the stack, then the warehouse down to the storage element box, and then s

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

发表评论

0 个回复

  • 以链表的形式实现货物的管理,包括链表的创建,插入,删除,查询,更新等....
    以链表的形式实现货物的管理,包括链表的创建,插入,删除,查询,更新等.-to List in the form of cargo management, including Chain create, insert, delete, query, update, etc..
    2022-09-07 05:55:02下载
    积分:1
  • 社区医疗系统
    一款社区医疗系统,对于领取药物,医药,员工工号,挂号,出勤,都可以在数据库中保存起来,比较适合中小医院,对于所要的基础硬件比较低的企业同样适合
    2022-02-02 17:26:21下载
    积分:1
  • 本人原创(delphi程序设计提高与应用)源码。本实例利用ADO组件与Access库连接,并可将其中的表中的生成word报表及Excel文件。源码中
    本人原创(delphi程序设计提高与应用)源码。本实例利用ADO组件与Access数据库连接,并可将其中的数据表中的数据生成word报表及Excel文件。源码中几乎所有的步骤都有详尽的说明,是delphi初级数据库编程人员快速进入状态的实用案例。-My original (delphi improve program design and application) source. The examples of the use of ADO components with the Access database connection, the data could be data in the table below to generate word statements and Excel documents. Source of almost all the steps are very detailed, is the primary database delphi programmers to quickly enter the state of practical cases.
    2022-03-06 01:02:12下载
    积分:1
  • mhtfffffffffffffff
     ;/*用于多文本直方图的Visual C#2010代码。
    2022-07-13 16:47:24下载
    积分:1
  • 银行业务模拟系统
    假设某银行有4个窗口对外接待客户,从早晨银行开门起不断有客户进入银行,由于每个窗口在某个时刻只能接待一个客户。因此在客户人数众多时需要在每个窗口前顺次排队,对于刚进入银行的客户。如果某个窗口的业务员正空闲,则可上前输业务。反之,若个窗口均有客户所占,他便会排在为数最少的队伍后面。编制一个程序模拟银行的这种业务活动并计算一天中客户在银行的平均逗留时间。
    2022-07-19 00:37:28下载
    积分:1
  • 使用访问的抽奖系统
    抽奖系统使用 miicrosoft 接入,作为后端数据库这是好的项目:) 歉意乱码
    2022-02-11 14:09:12下载
    积分:1
  • Zip database .Plaese use.
    有关zip的一个开发实例。主要包括图片和程序源代码。-Zip database .Plaese use.
    2022-02-05 22:01:37下载
    积分:1
  • One uses tcp communication. 2 Des realize freedom to choose the main library. ba...
    1采用了tcp通信。 2实现自由选择主辅库。 backup:数据库监视备份软件(backup.exe,backup.ini,backup.log,sendclient.log)-One uses tcp communication. 2 Des realize freedom to choose the main library. backup: backup software, database monitoring (backup.exe, backup.ini, backup.log, sendclient.log)
    2022-03-25 02:10:16下载
    积分:1
  • 好用的仓库管理系统
    好用的仓库管理系统-user-friendly Warehouse Management System
    2022-03-25 13:08:30下载
    积分:1
  • 插入运算符算法,123456789=a,在等式左边的任意两个字之间插入 +...
    插入运算符算法,123456789=a,在等式左边的任意两个数字之间插入 + - *使得等式成立,列出满足条件的所有结果-Insert operator algorithm, 123456789 = a, the left side of the equation inserted between any two figures+-* Make the equation set up, listing all of the results meet the conditions
    2023-05-20 01:30:04下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载