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

  • xmsswifiqd
    vc书籍。入门级教学,用于引导新手。用于自学。(vc books. Entry-level teaching, to guide novice. For self-study.)
    2014-05-25 08:17:35下载
    积分:1
  • VCnle
    说明:  一个五脏俱全的 CPU+GPU软非编 工程,两路视频混合,实现了几个特技,能够输出AVI。起个抛砖引玉的作用,有意者请继续完善,然后将作品发表出来共享,实现共同进步。注意两路视频中,不要两路都是DVD文件,最好两路视频都是MP4,或是都未加压的AVI。 (converted a soft CPU-GPU series, two video mixing, achieving several stunts output to AVI. Take a stimulus by interested are invited to continue to improve, and then released in sharing works, and achieving common progress. Note 2 video, the two roads are not DVD, the best two-way video MP4 are, or did not pressurized AVI.)
    2006-03-09 10:15:47下载
    积分:1
  • all
    万能字典可以查询所有的公式你有就知道什么东东啦(Universal Dictionary of the formula can search all you have to know what you Dongdong)
    2009-03-18 13:28:04下载
    积分:1
  • CVI_rs232
    Labwindows CVI 中不错的串口编程,串口调试(Good serial programming Labwindows CVI, serial debugging )
    2020-07-07 23:18:57下载
    积分:1
  • ADO
    Vc++中,MFC中实现数据库的实时显示以及增加和删除(To increase the database to delete in MFC)
    2012-11-05 21:15:35下载
    积分:1
  • FLASH_Scratch1
    想写的介绍了c8051f020的Flash的擦除与写入程序,存储非易失性数据(Write the introduction to the c8051f020 Flash erase and write procedures, non-volatile data storage)
    2014-07-08 15:47:19下载
    积分:1
  • VC_moving-dec
    VC编程实现运动目标检测,背景差分,亲测可用哦(VC programming to realize moving target detection )
    2015-03-29 19:40:00下载
    积分:1
  • driverdev6asp_src
    一个windows显示驱动的好程序,对学习驱动开发很有好处(a windows driver of the program is to study the development of a very good driver)
    2021-01-04 10:18:55下载
    积分:1
  • linjiebiao
    说明:  用VC++环境和邻接表存储结构实现图论中的简单路劲(Implementation diagram of the simple Road King)
    2010-04-10 10:17:34下载
    积分:1
  • TTTOOA_uwbh
    这是在uwb系统中,用TOA定位法的的整个系统的仿真程序源码 (This is a simulation program source code for the entire system in uwb systems, TOA positioning method)
    2020-08-11 19:58:26下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载