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

  • 44544789STKfirst
    用vc++调用stk的程序。如需下载的同学下载来看看(AppWizard has created this STKfirst 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 STKfirst application.)
    2020-09-21 14:27:51下载
    积分:1
  • Test_Parl
    使用VC对并口进行访问和控制的VC程序示例,该程序完全用API完成(parallel to the use of VC visit and control procedures VC example, the procedure is totally complete with API)
    2005-06-01 20:55:03下载
    积分:1
  • 水库调度POA
    水库调度POA算法,动态规划的改进方法。(POA algorithm for reservoir scheduling)
    2018-04-17 21:12:13下载
    积分:1
  • 3Dnetwork
    程序分2部分,一部分是用C++编写,负责显示3D效果,另一部分是由C#编写,负责网络通信(Program in 2 parts, one written with C++, responsible for displaying the 3D effect, the other is written by the C# is responsible for network communication)
    2010-10-18 17:00:48下载
    积分:1
  • zhuatubiaoyuandaima
    用来抓图的一个源代码,帮助你学习一下windows方便的东西(to a source code, and help you learn about things convenient windows)
    2007-04-08 09:38:29下载
    积分:1
  • TI-C6000-optimization--guide
    为TI DSP 初学者收集整理了一系列的代码优化文档,并给出一个学习这些文档的流程,在doc文档中进行了一个概述和串联,帮助初学者更好更快的进入状态。(The optimization of code documents a series of TI DSP beginners collection, optimization including C and assembly code, and presents a learning process in these documents, DOC documents made a summary and series, to help beginners to better and faster to enter the state. )
    2013-10-04 11:47:32下载
    积分:1
  • opnet_dsr
    运行在opnet仿真平台下的dsr路由协议模型(Configure the IMS model has an important role in packages, sip and umts 3g network in opnet)
    2012-04-05 13:53:06下载
    积分:1
  • cSharp2
    C#从入门到精通,这就是下半部分,大家可以自己找上半部(C# From Novice to Professional, which is the lower half, you can find yourself on the half)
    2013-12-11 11:05:13下载
    积分:1
  • zbzh070620
    用来实现极坐标和直角坐标的转换,C++程序(Used to achieve the polar coordinates and rectangular coordinates conversion, C++ Procedures)
    2007-10-25 16:14:34下载
    积分:1
  • Status
    说明:  实习时编写的程序,可以读取256色的BMP图像,并进行高通低通滤波,以及灰度直方图的统计(attachments prepared by the procedures, can read 256-color BMP images, and high-low pass filtering, and the histogram statistics)
    2006-03-11 22:46:04下载
    积分:1
  • 696518资源总数
  • 104793会员总数
  • 32今日下载