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

  • AT_BreakOutCTP
    AT_突破(CTP源码),主要采用海风交易平台接口,在其上编译开发的技术指标类型的程序化交易实例(AT_ breakthrough (CTP source), mainly in the sea breeze trading platform interface, technical indicators compiled on the type of program trading instance)
    2012-08-11 21:07:34下载
    积分:1
  • 盛开的蔷薇
    说明:  无危害,小窗口置顶,恶作剧小程序。。。。(No harm, small window at the top, prank widget)
    2020-02-28 19:08:43下载
    积分:1
  • arcobjects--methods
    这本书是AO提高的必备书籍 他将庞大的AO抽丝剥茧 提供了不少快速掌握的捷径(a good book for increase your AE programming technique)
    2011-09-14 10:16:25下载
    积分:1
  • demo_collect
    demo source code of using collect in Micrsoft Visual C++.Net 2003(demo source code of using collect in Micrso Visual C ft. Net 2003)
    2007-06-21 17:12:22下载
    积分:1
  • TransparentWindow
    ppWizard has created this TransparentWindow application for you. This application not only demonstrates the basics of using the Microsoft Foundation classes but is also a starting point for writing your application. This file contains a summary of what you will find in each of the files that make up your TransparentWindow application.
    2004-07-13 10:49:50下载
    积分:1
  • DeskTopWallPaper
    使用VC++,调用windows系统API修改桌面壁纸的例子,可以参考下(The use of VC++, windows system calls API to modify the desktop wallpaper example, can refer to )
    2014-05-22 18:07:14下载
    积分:1
  • 213937196ADDSKIN
    可以给MFC添加皮肤,内含很多,且有使用方法,非常好用。文件很齐全(You can add the skin, to the MFC containing a lot of, and use, very easy to use. The file is complete)
    2013-09-03 10:56:36下载
    积分:1
  • liaot
    Visual C++案例开发集锦第六章\聊天室服务器端开发的程序源码,值得一看!(Visual C++ case development highlights Chapter Chat server-side development of the program source code, worth a visit!)
    2011-08-13 16:09:13下载
    积分:1
  • GNSS
    单点定位就是根据一台接收机的观测数据来确定接收机位置的方式,它只能采用伪距观测量,可用于车船等的概略导航定位。(Single point positioning is based on observations of a receiver to determine the position of the receiver way, it only can use the false distance measurements, can be used to approximate the travel and other navigation and positioning)
    2020-12-30 11:59:00下载
    积分:1
  • c
    说明:  经典c语言源代码,对学习c语言的人很重要,值得一看(Classic C language source code is very important, see, learn c language)
    2012-06-26 15:22:56下载
    积分:1
  • 696518资源总数
  • 104702会员总数
  • 37今日下载