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

  • WINDOWSNetWork
    说明:  windows网络编程艺术,适合网络开发程序员看(windows network programming art, web development programmers look for)
    2010-04-09 10:49:19下载
    积分:1
  • Notify-Icon
    This control add your applications icon in the system tray.It also support baloon type tool tip. It s cool Control.
    2013-09-20 07:04:01下载
    积分:1
  • dinwei
    车牌识别系统,对车牌进行初定位,分割,字符进行识别,处理,提取(License Plate Recognition system, the beginning of the plate for positioning, segmentation, character recognition, processing, extraction)
    2020-07-03 22:40:02下载
    积分:1
  • YUVviewer_src
    能实现视频帧格式的选择,前一帧的播放,整个视频的文件播放(Can realize the video frame format of choice, before playing a frame, the video file playback )
    2015-04-28 16:45:57下载
    积分:1
  • LOF
    列举制定的目录中被打开的文件,和打开这些文件的进程的PID,命令:lof 驱动文件 目标文件夹。由于驱动的限制,该程序仅适用Windows 2000/XP。(Listed in the directory has been developed to open the file, and open the files of the process PID, the command: lof driver file destination folder. As the driving restrictions, the program applies only to Windows 2000/XP.)
    2010-03-13 22:36:30下载
    积分:1
  • EmailManagement
    数据库课程设计简单的邮件管理系统。可以用VS2013连接oracle数据库,实现一些简单的操作(Database design courses simple mail management system. VS2013 can be used to connect oracle , to achieve some simple operations)
    2016-01-06 21:09:48下载
    积分:1
  • aoyunwuhuan
    在VC++下面用MFC类库实现的绘制奥运五环的程序源码(In VC++ Following MFC class library with five Olympic rings realize the mapping procedure source)
    2008-05-10 19:24:27下载
    积分:1
  • DS18B20
    芯片SD18B20的中文资料说明。解压即可(The Chinese information on the chip SD18B20. Decompression can)
    2013-12-26 13:09:18下载
    积分:1
  • SPGame
    SP短消息平台,非常GOOD的(SP short messaging platform, the very GOOD)
    2005-03-01 11:46:22下载
    积分:1
  • yinyuebofangqi
    使用Visual C++编程工具开发音乐播放器(Using Visual C++ programming tools developed music player)
    2011-07-18 17:33:52下载
    积分:1
  • 696518资源总数
  • 104932会员总数
  • 12今日下载