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

  • Point
    window编程中,指针结构体函数,很实用。(programming window, the pointer structure functions, very practical.)
    2013-09-20 23:22:12下载
    积分:1
  • OnlineMovie
    视频点播系统,实现了基本的视频点播、管理功能(The source of the online video play system, contains the entire solution)
    2018-03-21 23:42:29下载
    积分:1
  • CArray
    CArray类的应用CArray.rar,很不错的vc源码,希望能对大家有所帮助(CArray class applications CArray.rar, very good vc source code, I hope you can help)
    2011-09-11 21:36:16下载
    积分:1
  • vlcnetworkPlayer
    基于vlc库做的媒体播放器,功能如下: 播放视频或音乐文件,包括网络媒体文件 媒体控制包括播放,暂停,停止,音量调节,视频文件还包括全屏操作。 注意:要运行此程序还必须要有vlc0.9.9a版本库!(Based on vlc media player library to do, features are as follows: Play a video or music files, including network media control media files, including play, pause, stop, volume adjustment, video file also includes full screen action. Note: To run this program also must have vlc0.9.9a version of the library!)
    2010-07-27 15:28:51下载
    积分:1
  • Banks_Tran1792759122004
    Software for Banking Purpose
    2014-11-27 03:11:10下载
    积分:1
  • map_document
    mapgis6.7二次开发demo 地图文档(mapgis6.7 secondary development demo map document)
    2010-12-17 23:26:13下载
    积分:1
  • ex5_3
    VC ++面向对象编程和可视化程序第5章3(VC++ object-oriented programming and visualization program Chapter V)
    2016-05-30 11:15:01下载
    积分:1
  • MFCleikuxiangjie
    MFC类库详解,编写MFC程序时很有用的资料(Useful information in the MFC class library Detailed writing MFC program)
    2012-05-10 09:15:04下载
    积分:1
  • SCadsAPI
    A documented functions of the synchronous memory chip cards api for gemalto readers that should be used for such cards.
    2011-01-28 19:24:07下载
    积分:1
  • MyBrowser_sell
    一个基于动网论坛游戏的外挂源代码,可以实现自动登录/刷挂/使用宝石/买红/使用红等等功能(动网论坛game based on plug-in source code, you can automatically log/brush hanging/use of precious stones/buy red/use red and so on)
    2007-08-29 13:07:28下载
    积分:1
  • 696518资源总数
  • 104269会员总数
  • 42今日下载