-
问题描述:假设一个商店,有一个架子和一个仓库,当第…
问题描述: 假设一个商店,它有一个货架和一个仓库,当货架上的商品数量少于一定的数目时,从仓库运一定数量的商品摆到货架上,当仓库里的商品的数量少于一定的数目时,购买商品把仓库填满,商品的出售要按照商品的生产日期来,快要过期的商品要先出售。 解决问题的方法: 用了两个栈和 一个队列,把队列当作仓库,用一个栈作为货架,把另一个栈当作临时的存储箱。当要往货架上添商品时,先把作为货架的栈中的元素全都压到作为存储箱的栈中,再把仓库中的元素压到存储箱中,然后再把存储箱中的所有元素都压到货架上,这样,就能保证快要过期的商品先被出售。-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
- 2022-07-13 01:56:00下载
- 积分:1
-
DELPHI实现的基于指针的堆栈和队列。可以用于实现结构的堆栈和队列。...
DELPHI实现的基于指针的堆栈和队列。可以用于实现结构的堆栈和队列。-DELPHI realized pointer-based stack and queue. Can be used to achieve the structure of the stack and queue.
- 2022-01-25 20:26:06下载
- 积分:1
-
一个介绍Odbc的详细例子,看后,受益颇多。
一个介绍Odbc的详细例子,看后,受益颇多。-introduced a detailed examples, see, a lot of benefit.
- 2022-08-11 20:43:44下载
- 积分:1
-
simple correspondence procedures
简单的通讯录程序-simple correspondence procedures
- 2022-02-02 13:57:03下载
- 积分:1
-
北acm1969(指望广东)
北大ACM1969(Count on Canton) -North ACM1969 (Count on Canton)
- 2023-06-03 04:45:04下载
- 积分:1
-
数据结构中八皇后的算法
数据结构中八皇后的算法数据结构中八皇后的算法...
数据结构中八皇后的算法
数据结构中八皇后的算法数据结构中八皇后的算法-the eight strategic nerve points
the eight strategic nerve points
the eight strategic nerve points
- 2022-04-17 11:29:21下载
- 积分:1
-
表达式求值,c语言,有运行bug,可供研究使用。
表达式求值,c语言,有运行bug,可供研究使用。-expression evaluates, c language, and running bug, available for study.
- 2022-03-16 10:04:29下载
- 积分:1
-
八数码难题用vc++编写
八数码难题用vc++编写-eight digital problem with the preparation vc
- 2022-06-27 03:46:07下载
- 积分:1
-
利用C语言实现,8种排序算法! 例如:插入排序、快速排序、选择排序、冒泡排序、堆排序、希尔排序、归并排序、基数排序!...
利用C语言实现,8种排序算法! 例如:插入排序、快速排序、选择排序、冒泡排序、堆排序、希尔排序、归并排序、基数排序!-using C language, eight algorithm! For example : insert sequencing, Quick Sort, select, in order of Bubble Sort, heap sort, Hill sorting, merging, in order of ranking base!
- 2022-09-08 14:45:03下载
- 积分:1
-
PowerBuilder应用开发经验及示例
PowerBuilder应用开发经验及示例-PowerBuilder application development experience and example
- 2022-01-23 10:54:42下载
- 积分:1