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

  • daojishi
    倒计时设计 单片机 武汉理工大学 课程设计 (daojishi)
    2009-07-10 23:22:04下载
    积分:1
  • programs
    一些matlab的程序,初学数字信号处理时的联系用,是经典书籍的答案(small)
    2009-02-22 18:24:49下载
    积分:1
  • GPS-wangpingcha
    GPS网平差C++程序,包含粗差探测、拟稳平差、已知点加权平差、自由网平差等各种算例(GPS network adjustment C++ procedures, including gross error detection, to be stable adjustment, known point weighting adjustment, free network adjustment, and other examples)
    2021-04-24 13:28:47下载
    积分:1
  • Chuong_03_Lenh
    Beginning Visual C++ 2010 First Edition
    2012-03-18 04:06:31下载
    积分:1
  • MS06034
    漏动攻击MS06034源程序,编译后可运行,测试效果一般,因为是一个比较老的洞了(MS06034 source leakage dynamic attack, the compiler can be run to test the effect of the general, because it is a hole the old)
    2009-06-14 12:40:02下载
    积分:1
  • CAR_Parking_StaticLibrary
    智能车库管理系统 MFC 车辆的存放 计费 修改 会员管理 数据记录(DAQ数据库)(The MFC system of parkiing cars.)
    2012-11-15 18:23:48下载
    积分:1
  • covpliwr
    简单的学籍管理系统 可以基本完成录入导出 学生的信息,不错(Simple student status management system can basically complete the input and export of student information, good)
    2018-12-05 12:45:29下载
    积分:1
  • VB与EXCEL精华
    VB与EXCEL精华 VB与EXCEL精华 VB与EXCEL精华(VB and Excel essence of the essence of VB and Excel and VB VB and Excel essence of the essence of VB and Excel Excel cream)
    2005-06-24 17:06:52下载
    积分:1
  • tcpserver
    一个能够接受TCP/IP连接的服务器源代码(One can accept TCP/IP connection the server source code)
    2011-04-26 10:52:28下载
    积分:1
  • ADO-MFC555555555
    复件 封装ADO之MFC应用,对于数据库操作非常有帮助(copy Packaging ADO's MFC application, database operation has been very helpful)
    2007-02-04 12:15:21下载
    积分:1
  • 696516资源总数
  • 106562会员总数
  • 4今日下载