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

  • BMPconvertTXT
    本程序通过 c++ 工具进行对BMP图像显示,转换为TXT格式并进行存储,适合于开发系统C++的研究者!(This procedure through the c++ tool for the BMP image display, converted to TXT format and storage, suitable for the development of system C++ researchers!)
    2017-05-14 10:37:27下载
    积分:1
  • Modbus-for-Field-Technicians
    Modbus for Field Technicians 介绍modbus的相当好的资料,包括原理和编程和协议介绍(Modbus for Field Technicians introduction modbus fairly good information, including schematics and programming and protocol description)
    2013-07-13 22:47:57下载
    积分:1
  • getversion
    本程序是一个获取windows系统的Version的C++程序(This program is a Get the windows system Version C++ program)
    2012-11-16 16:47:19下载
    积分:1
  • SerialPortTest
    学习C++,先学串口编程,本程序就是以串口作为编程对象,进行针对串口的数据接收与发送,内含丰富的注释,纯个人理解!(To learn C++ learn first serial programming, the program is as a programming object to the serial port for serial data reception and transmission, contains a wealth of comments, pure personal understanding!)
    2013-04-28 10:18:11下载
    积分:1
  • CAM_simulator_src
    一个老外写的车削数控仿真程序,有g代码编辑的(a foreigner was turning the NC simulation program, code editors g)
    2021-04-22 23:08:48下载
    积分:1
  • Buiw_note
    此文档是学习buiw后的一些笔记,记录了学习过程中的犯过的一些错误,能给学习buiw的一些帮助!(The document is the study of the buiw after some notes, and records the learning process made some mistakes, can give buiw learning some help!)
    2012-02-16 22:29:04下载
    积分:1
  • STM32F10x-USART
    stm32F10X系列的USART应用实例(含说明文档),入门以及应用的时候可以参考。(An example of application of USART stm32F10X series(pdf intrudution includeed), useful and easily when allpied.)
    2013-03-21 09:01:45下载
    积分:1
  • 62
    说明:  大灰狼远程控制系统高仿8.62小马白加黑源码!过启动/过网购/过拦截/无提示上线(The Wolf remote control system of high imitation 8.62 pony white and black source! Before to start/shopping/interception/no tips online)
    2017-04-19 13:55:27下载
    积分:1
  • RayAABBCollision_D3D
    d3d写的aabb与射线碰撞检测的例子,vs 编写,功能完整(d3d written aabb collision detection and ray example, vs the preparation of functional integrity)
    2020-12-31 21:48:58下载
    积分:1
  • 6416198
    Similar to VB property sheet controls(Similar to the VB property sheet controls)
    2017-07-19 01:30:36下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载