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

  • base64
    Base64解码方法中,最简单的也是查表法:将64个可打印字符的值作为索引,查表得到的值((Base64 decoding method, the simplest is the look-up table method: 64 printable character value as an index lookup values ​ ​ obtained ()
    2013-07-02 21:35:04下载
    积分:1
  • Music
    一款完全免费的音乐播放软件,高精度音质,完美还原听觉。Window Media Player在制作WMA文件时默认启用了"数字版权保护"机制,而要支持这种文件,必须得到微软的官方支持,考虑到手续比较麻烦所以目前还未实现对它的支持。所以在制作WMA文件的时候请尽量不要使用数字版权保护。(My Music)
    2013-08-13 21:47:35下载
    积分:1
  • chap4
    在C++编程环境下,实现MIDI音乐的播放功能,可以用来学习简单的多媒体编程。(In the C++ Programming environment, realize MIDI music playback functions, can be used to study a simple multi-media programming.)
    2008-03-05 16:41:25下载
    积分:1
  • FFT
    基于Tms320 5509a的 快速傅里叶变换(FFT)的CCS程序(FFT process based on dsp 5509a)
    2014-11-03 20:27:15下载
    积分:1
  • load_Sys
    说明:  驱动程序加载卸载工具 编写RootKit加载驱动程序的测试工具 自己写的(Driver loading and unloading tools prepared RootKit driver load testing tool wrote it myself)
    2008-10-02 12:55:44下载
    积分:1
  • 打印机的通信工具PFT
    与打印机的通信工具,文件传输工具,也可做渗透打印机。( PJL File Transfer command line interface to PJLlib functionality )
    2020-07-17 10:38:48下载
    积分:1
  • delauncy
    说明:  生成tin,三角网格的显示,delauncy三角形的显示(generation tin, the triangular mesh, the triangular show delauncy)
    2006-01-15 16:10:37下载
    积分:1
  • 2007468572761973
    AHP层次分析方法的程序,VB环境下开发(AHP AHP procedure, VB Development Environment)
    2021-04-29 12:18:43下载
    积分:1
  • ActiveX
    Visual C++高级开发范例解析第二章ActiveX源码(Visual C++ Advanced Development ActiveX sample chapter source analysis)
    2009-04-14 09:40:44下载
    积分:1
  • Source-code-in-C-Sharp
    说明:  记事本源代码C#,大家可以看看,简介易上手(Notepad source code C#, we can see, Introduction approachable)
    2011-04-08 08:52:55下载
    积分:1
  • 696518资源总数
  • 105531会员总数
  • 4今日下载