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

  • owncombox
    一个定制combox的SDK代码,you should first learn to use VC Tools (nmake) to Build SDK Code(a Custom Combox SDK code, you should first learn to use VC Tools (nmake) to Build Code SDK)
    2005-04-14 23:20:53下载
    积分:1
  • 4_2DFF
    数字信号处理中级联型数字滤波器的频率响应的计算程序(Digital signal processing in the cascade type digital filter frequency response calculation program)
    2013-05-22 11:53:04下载
    积分:1
  • acv-encryption-tool-3.0
    适用于劲舞团ACV文件的解压打包,很好用的一款软件Audition acv encryption tool 3.0 listed(Audition acv encryption tool 3.0 listed)
    2016-07-23 15:17:20下载
    积分:1
  • SQL Server数据库支持的售票系统
    管理航空公司的信息. vb数据库编程练习,请大家多多指教.(This program can manage information of air company based on VB and SQL Server.)
    2005-07-08 12:53:07下载
    积分:1
  • 小火箭
    使用VC6.0加上MFC做的模拟交通灯十字路口程序。绿灯时车辆通过十字路口,反之停止。((VC6.0 the simulation traffic lights crossroads procedures plus MFC do. Green light when the vehicle through the crossroads, and vice versa stop.))
    2017-08-29 10:45:35下载
    积分:1
  • lua952
    天龙八部最新lua,涵盖基本所有lua,900多个(tian long ba bu lua 900 duo ge.)
    2020-12-18 09:29:11下载
    积分:1
  • Sun
    opengl 实现太阳系的模拟 地球自转和公转(opengl sun earth moon)
    2010-12-02 18:11:24下载
    积分:1
  • DSPLIT.DSW2
    灰度变换,非0元素取1法,固定阀值法,双固定阀值法,反色变换处理,窗口变换处理(gray transform, 0-element method for a fixed threshold, two fixed threshold, anti-color transformation, transform window)
    2007-01-26 18:46:02下载
    积分:1
  • shukong
    数控代码仿真器是利用VC++6编辑的一个执行数控代码可视化功能的软件。数控代码仿真器的使用较简单。(NC code is the use of simulator VC++ 6 editing NC code an implementation of visualization software. NC code simulation of the use of relatively simple devices.)
    2008-03-15 13:31:57下载
    积分:1
  • 8767547657
    VB网页源代码查看器并分析出URL链接,有需要的就下载吧。(VB page source code viewer and analyze the URL link, there is a need to download it.)
    2013-08-22 19:31:29下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载