登录
首页 » c » 自动售货机课设

自动售货机课设

于 2023-03-25 发布 文件大小:1.44 kB
0 115
下载积分: 2 下载次数: 3

代码说明:

题目名称:简易的自动售货机 (1)设计简易售货机,物品架1和2上共有10样商品,按顺序进行编号1—10,标有价格与名称。 (2)用户可以一次投入较多钱币(支持1元、2元、5元、10元), 并可以选择多样商品,售货机可以一次性将商品输出并找零钱。 注: (3)输入的数据第1行是投入售货机的钱币序列,第2行为购买商品编号序列,序列输入均已-1结束。 (4)同时,假定物品架上的物品数量固定,当被用户选走一次,数量会减1。 (5)请对每样物品数量做个限制,用户选物品时,如果物品数量为0,则提示该用户不能选取该物品。

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

发表评论

0 个回复

  • C#S7.net联合编程
    西门子PLC与C#之间通过S7协议通信编程(Communication Programming between Siemens PLC and C# through S7 Protocol)
    2019-07-10 10:39:21下载
    积分:1
  • 蓝牙小台灯
    基于 CC254xSmartRF 开发板的蓝牙台灯制作,里面附有讲解的文章,讲解的很清晰,适合学习这参考学习应用。
    2022-02-26 06:28:42下载
    积分:1
  • Mine
    一个用vc++编写的踩雷游戏,主要用于学习MFC中有关函数的学习。(Ray game on。)
    2012-04-22 16:10:33下载
    积分:1
  • GPIO-interrupt-programming
    STM32之GPIO之外部中断程序编写,学习STM32的苦心积累,希望能帮到你。(STM32- External GPIO interrupt the programming, learning STM32 painstakingly accumulated, I hope you can help.)
    2015-03-30 17:51:37下载
    积分:1
  • jumping_the_queue
    The beginning of a winter break near Spring Festival is always the beginning of a peak period of transportation. If you have ever tried to get a train ticket at that time, you must have witnessed the endless queues in front of every ticket box window. If a guy has seen his friend in a queue, then it is very much likely that this lucky guy might go straight to his friend and ask for a favor. This is called "jumping the queue". It is unfair to the rest of the people in the line, but, it is life. Your task is to write a program that simulates such a queue with people jumping in every now and then, assume that, if one in the queue has several friends asking for favors, he would arrange their requests in a queue of his own(The beginning of a winter break near Spring Festival is always the beginning of a peak perio d of transportation. If you have ever tried to ge not a train ticket at that time. you must have witnessed the endless queues in fr ont of every ticket box window. If a guy has seen h is friend in a queue, then it is very much likely that this lucky guy mi ght go straight to his friend and ask for a favor. This is called "jumping the queue." It is unfair to the rest of the people in the line, but, it is life. Your task is to write a program that si mulates such a queue with people jumping in ever y now and then, assume that, if one in the queue has several friends asking az r favors. he would arrange their requests in a queue of his own)
    2006-11-04 20:29:57下载
    积分:1
  • QQ模拟登陆 源码下载
    QQ模拟登陆 源码下载
    2014-07-12下载
    积分:1
  • Snake-Game
    2.1寸TFT屏做的贪吃蛇游戏,可以显示当前等级,分数!(2.1-inch TFT screen to do the Snake game, you can display the current level, score!)
    2014-11-13 21:07:33下载
    积分:1
  • 耐火材料检测
    耐火材料的检测,根据专的面积变化记录耐火材料的性能 耐火材料的检测,根据专的面积变化记录耐火材料的性能 耐火材料的检测,根据专的面积变化记录耐火材料的性能 根据耐火材料的轮廓信息,记录他的面积
    2022-09-18 14:30:05下载
    积分:1
  • stm32f407+ov5640颜色识别 现在为黑色
    说明:  能利用stm32f4+ov5640去识别黑色(Recognition of Black Using stm32f4+ov5640)
    2020-06-19 09:00:06下载
    积分:1
  • c写的#垃圾日历,和他的党是旅行的代码rili.rar
    用c#写的垃圾日历,竟没写一行代码rili.rar-used to write c# refuse calendar, and his party was traveling code rili.rar
    2022-07-14 21:00:21下载
    积分:1
  • 696518资源总数
  • 105925会员总数
  • 14今日下载