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

  • PlayTimeTest
    时间块界面展示,画面上显示哪个时间段信息(Block interface shows the time displayed on the screen which time the information)
    2011-05-31 10:37:23下载
    积分:1
  • Teach-Yourself-DirectX-7-in-24-Hours
    Teach Yourself DirectX 7 in 24 Hours E-book
    2012-09-06 21:14:28下载
    积分:1
  • 1
    发撒地方萨芬 飞洒的浪费就 广泛的郭德纲个梵蒂冈的(Safin Feisa hair sprinkled local waste on a wide range of Guo Degang Vatican)
    2013-11-26 15:38:39下载
    积分:1
  • NS
    基于元胞自动机的交通流模型 ns模型 C++(ns model, C++)
    2014-02-07 14:57:32下载
    积分:1
  • VcKbase1-52
    vc知识库电子杂志合集 1到52期 全的(the vc Knowledge e-magazine collection 1-52 complete)
    2012-05-22 15:43:26下载
    积分:1
  • TCPIPAnalyse1
    对TCPIP网络包解析,Win下网络编程参考源码(TCPIP network packets for analysis, Win Network Programming Reference Source)
    2013-05-24 13:21:34下载
    积分:1
  • Grid
    一个VB6编写的表格控件,对与我们学习控件编写很不错。(Write a VB6 grid control, we can learn to write and very good control.)
    2016-04-06 10:55:19下载
    积分:1
  • DUNK!!!
    能对输入的两个数进行任意的四则运算,输入数字和符号即可(to the importation of two arbitrary number of the four operations, the importation of figures and symbols can be)
    2006-10-30 23:24:29下载
    积分:1
  • kingbos
    关于教育网站的开发和架构,采用三层架构模式,使用于多企业(Website development framework on education)
    2013-09-08 13:46:48下载
    积分:1
  • SerialPortTest
    学习C++,先学串口编程,本程序就是以串口作为编程对象,进行针对串口的数据接收与发送,内含丰富的注释,纯个人理解!(To learn C++ learn first serial programming, the program is as a programming object to the serial port for serial data reception and transmission, contains a wealth of comments, pure personal understanding!)
    2013-04-28 10:18:11下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载