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

  • design
    运动会管理系统 可以让你快速入门 绝对可以提高技术(Games Management System)
    2014-02-18 20:11:46下载
    积分:1
  • siyiren-dlfj
    说明:  环境动力系统,希望对大家有用,哈哈,用于他处后果自负啊(Power system environment, useful for all of us hope, ha ha, for the consequences of his own Department ah)
    2009-08-19 09:44:56下载
    积分:1
  • Pendulum
    这个程序是基于固高公司运动控制卡的倒立摆完整控制程序,包括了界面、实时曲线显示、算法等部分。(This procedure is based on the solid high-motion control card company of the inverted pendulum control program integrity, including the interface, real-time curves showed that part of algorithm.)
    2020-11-25 12:49:32下载
    积分:1
  • UAVPlatform0223
    osg地图,在vs2010和qt5上面搭建地图软件框架(Osg map, in the vs2010 and qt5 above the map software framework)
    2017-03-06 17:05:36下载
    积分:1
  • 超级网格
    说明:  用Crid插件,并加上了下拉列表框和编辑框控件,丰富了Grid 的功能。(using Grid plug-in, and add a drop-down list box and edit box control enriched Grid functions.)
    2005-10-26 14:21:58下载
    积分:1
  • yuandaima
    文件磁盘完整提取 插上磁盘直接获取 可以获得磁盘符 (Extract file disk full)
    2013-06-09 17:46:24下载
    积分:1
  • UKKSetUP
    哈萨克语输入法 哈萨克语输入法 哈萨克语输入法(kazakh input kazakh input kazakh input kazakh input)
    2010-08-31 23:40:04下载
    积分:1
  • VC.NET
    vc++.net精彩百例代码。比较好的,比较经典的例子。(vc++. net wonderful 100 cases of the code. Better, more classic example.)
    2010-03-11 15:36:05下载
    积分:1
  • 11
    说明:  学分计算以及录入程序。输入excel的成绩和分数可以输出excel学分(Credit calculation and entry procedures. Enter scores and scores can excel excel export credits)
    2014-01-13 21:59:50下载
    积分:1
  • DSMP_Provision_API_HP11_20040303
    卓望短信网关.+cmpp3.0协议.MISC系统短信SP接入培训.(ASPire SMS gateway.+ Cmpp3.0 agreement. MISC SMS SP system, access to training.)
    2009-11-13 08:58:18下载
    积分:1
  • 696522资源总数
  • 104022会员总数
  • 48今日下载