(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 177
下载积分: 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 个回复

  • 632343
    一种GPS和GSM模块的资料-A GPS and GSM modules of information(A GPS and GSM modules of information)
    2009-11-02 17:04:47下载
    积分:1
  • FLAC3D-zidingyibengoumoxing
    flac3d自定义本构模型实例演示,可以帮助数值模拟爱好者学习如何自定义本构模型。(flac3d custom constitutive model examples demonstrate, numerical simulation can help enthusiasts to learn how to customize the constitutive model.)
    2021-01-28 11:08:35下载
    积分:1
  • Explosion-and-Shock-Simulation
    爆炸与冲击的仿真研究 爆炸与冲击的仿真研究(Explosion and Shock Simulation Explosion and Shock Simulation )
    2011-12-18 11:14:32下载
    积分:1
  • date
    一个对日期编写的函数。 在VC6.0下实现。(Date of preparation of a function. Achieved in VC6.0.)
    2009-01-03 22:55:49下载
    积分:1
  • Secret_hacker_disassembly
    黑客反汇编揭秘................(Secret_hacker_disassembly )
    2010-11-03 14:43:55下载
    积分:1
  • winrtplastest
    WinRTP is a COM component which can originate RTP (Realtime Transport Protocol) media from a microphone and terminate RTP media on a speaker.(WinRTP is a COM component which can origina te RTP (Realtime Transport Protocol) media fro m a microphone and terminate on a RTP media speak er.)
    2006-12-20 23:12:49下载
    积分:1
  • js
    说明:  利用VB6.0计算指定日期在一年当中的排序,以1月1日为第一天。(Sort calculated using VB6.0 specified date in the year to January 1 as the first day.)
    2015-09-11 18:44:27下载
    积分:1
  • game
    这是一款小游戏,应用vb编写的源代码,挺有意思的(This is a game, the application prepared vb source code, very interesting)
    2009-06-03 23:21:35下载
    积分:1
  • palindrome
    c语言基础,判断一个字符串是否为回文的程序,仅供参考(Determine whether a string is a palindrome)
    2014-01-03 16:49:39下载
    积分:1
  • 50-c--c-P-P-source-code-site
    搜集的50个c/c++源代码网站,资源丰富(Collected 50 c/c++ source code site, rich in natural resources)
    2012-04-22 11:49:24下载
    积分:1
  • 696518资源总数
  • 105885会员总数
  • 31今日下载