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

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

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

  • 1. 在IBConsole中添加两个用户LOGIN和MATER,密码均为PASSWORD。 2. 用MISDBA用户登录MISDB库。 3. 在IS...
    1. 在IBConsole中添加两个用户LOGIN和MATER,密码均为PASSWORD。 2. 用MISDBA用户登录MISDB数据库。 3. 在ISQL中,输入第9章提供的SQL语句;或者根据表9-1至表9-8在SQL Explorer中自行创建数据表。数据库创建后需要分配LOGIN和MATER用户的访问权限。 4. 根据表9-9和表9-10设置初始数据,另外需要在PERSON数据表中设置一个用于登录系统的用户(ID=’MAT’,PASSWD=’PASSWORD’,AUTHORITY=’7’,STATE=’F’),同时在PART表中添加ID为’0000000000’的零件,名称为“。 5. 除了修改数据库连接的属性,还需要修改数据模块中LOGIN方法的相关用户密码。 -1. In addition two IBConsole users LOGIN and Mater. passwords are PASSWORD. 2. User login with MISDBA MISDB database. 3. In ISQL, the importation of Chapter 9 of SQL; Or, according to Table 9-1 to Table 9-8 in SQL Explorer to create data sheets. After creating the database needs and Mater distribution LOGIN user access permissions. 4. According to Table 9-9 and Table 9-10 initial data set, Another need PERSON data tables set up a registration system for users (ID = "MAT" PASSWD = "PASSWORD" AUTHORITY ="7 ", STATE = "F"), PART table at the same time adding ID to"0000000000 "parts, name. " 5. In add
    2022-08-02 16:54:09下载
    积分:1
  • DES,MD5,ZLIB算法源代码
    DES,MD5,ZLIB算法源代码-DES, MD5, ZLIB algorithm source code
    2022-07-10 21:54:32下载
    积分:1
  • 一个用c语言写的迷宫演示程序。借助了其他人共同的智慧
    一个用c语言写的迷宫演示程序。借助了其他人共同的智慧-A with c language demo of the maze procedure. With other people
    2022-11-19 01:20:03下载
    积分:1
  • IOCP聊天室系统
          极大限制了服务器应用程序的使用,本程序采用ICPQ,利用端口实现的聊天室系统,可实现多个用户同时在线聊天,源代码包含了一份官方的文档,并加有注释。
    2022-02-06 08:17:34下载
    积分:1
  • data structure, the topological sorting and topological sorting algorithm used t...
    数据结构里的拓扑排序和非拓扑排序算法,用vc6.0编写-data structure, the topological sorting and topological sorting algorithm used to prepare vc6.0
    2023-06-09 08:00:03下载
    积分:1
  • 程序功能: 实现一元多项式的四则运算 ,用到的主要就是多现式的实现,除法实现起来是很复杂的。...
    程序功能: 实现一元多项式的四则运算 ,用到的主要就是多现式的实现,除法实现起来是很复杂的。-procedures functions : achieving a polynomial of four operations is mainly used in the more- is the realization Apart from achieving up is very complex.
    2023-03-27 08:25:03下载
    积分:1
  • c编的一个时钟程序
    c编的一个时钟程序-a series of clock procedures
    2022-01-30 11:15:47下载
    积分:1
  • MM1队列模拟
    实现M/M/1单窗口无限排队系统的系统仿真,利用事件调度法实现离散事件系统仿真,并统计平均队列长度以及平均等待时间等值,以与理论分析结果进行对比。 M/M/1排队系统: 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
    2023-01-05 02:15:04下载
    积分:1
  • 一个根VC++开发的人事管理系统,可以实现一系列基本的库操作...
    一个根据VC++开发的人事管理系统,可以实现一系列基本的数据库操作-VC development under a personnel management system that can achieve a series of basic database operations
    2022-07-11 16:20:15下载
    积分:1
  • Form Login
    2022-04-16 00:27:41下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载