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

  • xp163.com.7.1.9
    基于CPB v2.0正式版修改而成,主要功能: 1 超连接改成自动变彩色 2 回复增加机遇插件 3 简单门派插件 4 首页发帖明星插件 5 点歌与播放器结合插件 6 公告加入小狗狗图标(CPB v2.0 Based on the final version of revisions, the main functions : an ultra-connect automatically change color into two plug-in reply to increase opportunities featuring three simple plug-star posting four Top 5 parlors plug-and-play device with plug-six small dogs joined Notice icon)
    2005-06-27 09:54:56下载
    积分:1
  • Explorer
    MFC Explorer Sample Code
    2014-02-13 15:01:09下载
    积分:1
  • 使用Qt和OpenGL创建跨平台可视化UI
    使用Qt和OpenGL创建跨平台可视化UI(QT OPENGL viewable UI)
    2017-06-04 22:48:26下载
    积分:1
  • tidurihua
    一个关于梯度梯度锐化的小程序,采用vc++编写(a gradient of the small gradient sharpening procedures used to prepare vc)
    2006-09-16 23:28:58下载
    积分:1
  • exoosg
    exercis on osg programing in visuel basic c++
    2013-11-09 19:19:42下载
    积分:1
  • 7041831USBDriver
    仅用于tp900掌机的usb驱动。安装简单方便。-Only the usb driver for tp900 handheld. Easy to install.(Writing From the information carefully detailed features, including the content description (at least 20 words). Try not to let owners to spend time on your revised instructions. When extracting archive can not have a password.)
    2011-06-11 10:55:33下载
    积分:1
  • vcFtp
    学习网络编程的初学者必看的.(Learning Network Programming Watchable the beginners.)
    2004-12-06 14:00:15下载
    积分:1
  • base2fft
    定点基2-FFT及执行时间测试代码。可以手工输入数据,也可以从文件读入。 文档中含有测试说明和代码。(sentinel-2-FFT execution time and test code. Can manually input data, but also from the file into. Documents containing descriptions and test code.)
    2007-04-11 22:31:41下载
    积分:1
  • PStechnology
    详细介绍了ps的基础技巧,让你从小白成为ps高手迈出了第一步。(Details of the ps of basic skills, so that you become ps from the white master the first step.)
    2013-12-28 20:40:28下载
    积分:1
  • 28335svpwmProgram
    基于TMS320F28335 SPVWM的实现源代码,已在CCS3.3中编译通过,波形很好。(TMS320F28335 implementation of SVPWM based, university thes is, it is practical)
    2020-07-02 07:20:02下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载