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

  • StuScore
    利用Visual Studio中的MFC功能和MysqL写的学生成绩管理系统应用程序,具有学生信息、成绩信息、课程信息等入库/批量入库、查询、修改等功能,教师登陆和学生登录有不同的权限(Use MFC in Visual Studio features and MysqL students write application performance management system, with student information, performance information, course information storage/bulk storage, query, modify the functions of teachers and students to log on landing have different permissions)
    2009-06-11 17:46:54下载
    积分:1
  • Lab_Exercices_Modeler
    opnet学习资料,提供部分网络仿真模型。一:介绍OPNET 环境。二:执行M/M/1队列模型。三:以太网模型(Aloha,CSMA,CSMA-CD).四:TCP.五:OSPF(OPNET learning materials, providing part of the network simulation model. 1: Introduction OPNET environment. Second: The Executive M/M/1 queue model. III: Ethernet model (Aloha, CSMA, CSMA-CD). IV: TCP. 5: OSPF)
    2021-04-13 09:38:56下载
    积分:1
  • errorRate
    用VC++实现的一个测试通信系统的误码率的程序,很好用的,是用两个串口的数据测试误码率的。(With VC++ realize a test communication system BER procedures, very good use, with two serial test data error rate.)
    2011-12-19 10:23:37下载
    积分:1
  • HADataSync
    通过套接字实现WINDOWS双机热备和数据同步功能(socket datasync)
    2020-07-02 01:00:01下载
    积分:1
  • TIchinese_A2007
    TMS320C6747 库文件, 吐血推荐, 找了好久, 希望对做DSP的朋友有帮助(TMS320C6747 libraries, recommended blood, looking for a long time, hope to help make friends DSP)
    2010-12-21 10:50:37下载
    积分:1
  • ply2pcd
    点云数据转换文件。可以将PCL转换为PLY文件,反之亦然。其中用到了点云库PCL的代码。(Point cloud data file conversion. PCL can convert PLY files, and vice versa. Which uses a point cloud library PCL code.)
    2021-04-07 12:59:01下载
    积分:1
  • SCIint
    飞思卡尔单片机SCI编程例子,很有参考价值,。而且有讲解(Freescale' s Microcontroller Programming SCI example of great reference value. But also to explain)
    2009-12-27 22:53:53下载
    积分:1
  • 完整串口通信序Vc++源代码
    一个非常完整的川口通讯源程序,我费了很大功夫才把他找到。(a very complete source Kawaguchi communications, I spent a lot of time and energy only to find him.)
    2020-11-21 14:29:37下载
    积分:1
  • 357357666
    显示多行文字的工具栏,VC++经典编程源码,很好的参考资料。(Display multiple lines of text toolbar, VC++ classic programming source code, a good reference.)
    2013-11-14 18:58:34下载
    积分:1
  • WindowMedia
    Windows Media 编程导向 作者 陆其明(Windows Media-oriented programming author Lu Qiming)
    2006-07-15 17:50:17下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载