(ThebeginningofawinterbreaknearSpringFestivalisalwaysthebeginningofapeakperiodoftransportation.Ifyouhaveevertriedtogenotatrainticketatthattime.youmusthavewitnessedtheendlessqueuesinfrontofeveryticketboxwindow.Ifaguyhasseenhisfriendinaqueue,thenitisverymuchlikelythatthisluckyguymightgostraighttohisfriendandaskforafavor.Thisiscalled"jumpingthequeue."Itisunfairtotherestofthepeopleintheline,but,itislife.Yourtaskistowriteaprogramthatsimulatessuchaqueuewithpeoplejumpingineverynowandthen,assumethat,ifoneinthequeuehasseveralfriendsaskingazrfavors.hewouldarrangetheirrequestsinaqueueofhisown) - IMDN开发者社群-imdn.cn">
登录
首页 » Visual C++ » jumping_the_queue

jumping_the_queue

于 2006-11-04 发布 文件大小:3KB
0 222
下载积分: 1 下载次数: 6

代码说明:

  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)

文件列表:

jumping_the_queue.c

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

发表评论

0 个回复

  • FRAME6.03
    说明:  MFC六大关键技术之仿真:(永久保存机制)实例(MFC six key technology simulation: (permanent preservation mechanism) instance)
    2010-04-08 01:40:16下载
    积分:1
  • 1
    说明:  面向对象 类的继承与派生 适合初学C++语言的人(class )
    2011-04-27 19:23:20下载
    积分:1
  • DevSearch
    1.局域网内设备IP搜索 2.发送广播包出去,同时启动侦听接收 3.支持局域网内跨网断搜索(1.IP search in local network 2.send broadcast packet, and receive request 3.support different gateway.)
    2015-08-19 11:58:11下载
    积分:1
  • task-manager
    一个用C++编写任务管理器,适合于初学者学习C++的一些应用,内涵word文档。(A writing task manager C++, suitable for beginners to learn C++ some applications connotation word document.)
    2013-03-21 08:10:46下载
    积分:1
  • DSP-based
    基于多DSP的雷达阵列信号处理系统 (DSP-based multi-array radar signal processing system)
    2013-11-17 09:17:50下载
    积分:1
  • SkyAppWiz(CP)1
    skysdk 杭州斯凯 SKYEngine平台SDK独家示例代码(skysdk sky-mobi SkyEngine Example Source code notepad)
    2020-12-03 08:29:25下载
    积分:1
  • FlowLayoutPalnel
    Teechart 动态加载,实现同一界面显示多个图形,适用于实时数据采集显示,自动分屏,经实际测试验证(Teechart dynamic loading to achieve the same interface to display multiple graphs, for real-time data acquisition and display, automatic screen, the real test verification)
    2016-06-13 12:12:18下载
    积分:1
  • qichekaiti
    汽车零部件管理开题报告,有价值可供大家参考,更多论文请见www.bysjaid.com(Car parts management opening report, valuable for your reference, more papers see www.bysjaid.com)
    2013-10-23 16:32:08下载
    积分:1
  • FAT32
    说明:  FAT32文件系统的详细描述,很好的文章。(FAT32 file system, a detailed description of a very good article.)
    2009-08-26 16:15:12下载
    积分:1
  • qt4-4a.tar
    This is beautigul image yeah 8 bit!
    2011-12-26 00:28:11下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载