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

  • tanchushicaidan
    用 Visual C++.Net (VC.net) 编写的如何创建一个 弹出式菜单 的演示程序,在Visual C++.Net 2003下运行正常。程序很简单,注释详细。为初学者学习交流使用。有需要的朋友可以下载看看!(Using Visual C . Net (VC.net) prepared in how to create a pop-up menu of the demo program in Visual C . Net 2003 to run normal. The procedure is simple and detailed notes. Learn to use for beginners. In need of a friend can download to see!)
    2009-01-20 20:20:15下载
    积分:1
  • adb_ycnc
    adb在VC6下的编译工程,带USB开发库,直接可编译成功。(adb complie by VC6)
    2015-06-25 11:21:26下载
    积分:1
  • vcWizard
    基于VC的向导程序示例,用于程序打包安装、用户协议查看浏览、程序分步处理等场合,示例虽然小,但挺实用的,有一定参考性。(VC' s wizard-based example, for program installation package, the user agreement see here, the program step processing and other occasions, the sample was small, but very useful, has some reference to sex.)
    2010-05-18 18:23:04下载
    积分:1
  • S-Function
    s函数的编程说明,有具体实例说明,介绍了其工作原理(It s a good article of s-function.)
    2012-03-08 15:16:25下载
    积分:1
  • AE-VB
    ArcEngine 与VB 开发实例 包括一些代码(ArcEngine VB developers Examples include some code)
    2013-04-03 09:25:46下载
    积分:1
  • can
    dspic30f4011的can总线设计(dspic30f4011 the can bus design)
    2010-10-25 22:57:07下载
    积分:1
  • project_struct
    Example Struct Code in C++
    2009-10-26 19:31:02下载
    积分:1
  • SpeechToWave
    speech to wave voice training for window sapi
    2010-09-03 10:26:08下载
    积分:1
  • FEM(VB)
    VB编写的一个有限元计算的例子,内容比较全面,包含网格划分,梁,桁架,热传输等情况的计算,以及后处理的显示。(An example of a finite element calculation written in VB, it is more comprehensive, including meshing, calculation beams, trusses, heat transfer, etc.as well as display after treatment.)
    2020-12-17 17:19:11下载
    积分:1
  • VC++ 串口调试精灵源代码
    VC串口调试软件的源代码,还可以,挺好用(The source code of VC serial debug software)
    2018-03-25 22:44:53下载
    积分:1
  • 696518资源总数
  • 105877会员总数
  • 14今日下载