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

  • dsplib_2.40.00
    说明:  本资料是关于dsplib的使用说明,其中还包括了各种算法的源码(This information is for use on the dsplib, including the source of various algorithms)
    2009-07-30 22:07:23下载
    积分:1
  • Snow-BIN
    这是一个托盘程序的事例,托盘程序在桌面实现下雪的场景(Snow Tray Program)
    2010-06-05 12:48:00下载
    积分:1
  • VBG
    基于固高控制卡的雕刻机实验系统VB源码解析G代码<用米米买的>(Googol control card based on the engraving machine experimental system VB source code parsing G <with Mimi buy>)
    2021-02-14 10:39:49下载
    积分:1
  • ch08
    Visual C++ 6.0程序设计学与用教程的聊天程序(Visual C++ 6.0 programming tutorial learning and use chat program)
    2014-04-05 07:54:20下载
    积分:1
  • VBdevelopmentexample
    Visual Basic系统开发实例精粹 人民邮电出版社(The essence of the system development example Visual Basic Posts & Telecom Press)
    2010-10-08 00:38:33下载
    积分:1
  • link-two-program
    link to program with dde protocol , in vb6
    2015-09-15 05:44:40下载
    积分:1
  • SerialPortTest
    基于VC++的,多个串口的,带通讯协议的应用程序,两个通讯口,可分别接受,发送协议数据包.()
    2008-04-04 01:29:36下载
    积分:1
  • MFC-ODBC-database-applications
    MFC应用程序ODBC数据库,可以运行成功的使用MFC编写的c++代码(MFC ODBC database applications)
    2014-06-25 11:15:21下载
    积分:1
  • vb-heike-programing
    VB黑客编程高手 VB黑客编程高手—30天打造黑客程序编写高手(vb program vb programvb programvb programvb programvb program)
    2011-05-08 18:18:29下载
    积分:1
  • filespy
    filespy fileter 文件过滤驱动 源代码(WDM file spy fileter Driver code)
    2011-05-03 16:19:58下载
    积分:1
  • 696516资源总数
  • 106409会员总数
  • 8今日下载