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

  • kyqcdw
    FaacDemo, PCM2AAC Source code learning source(FaacDemo, PCM2AAC Source code learning Source)
    2017-04-17 15:44:52下载
    积分:1
  • lpc2368IAP
    lpc2368的IAP参考代码有很强的使用价值。请认真阅读下载(lpc2368 of IAP reference code has a strong value. Please carefully read the download)
    2013-06-09 16:37:55下载
    积分:1
  • dsp-code
    本代码主要实现SVPWM的算法,主要针对dsp28335。PWM波的频率为10KHz,死去时间2us。(This source code mainly realizes SVPWM and dsp28335 is used.The frequency of pwm is 10Khz and dead band time is 2us)
    2020-10-08 17:47:36下载
    积分:1
  • 07
    说明:  《Visual c++ 项目开发案例 全程实录》(第二版)第七章 图书管理系统 配套源代码(&quot Visual c++ project development case full Record&quot (second edition) Chapter VII of the library management system supporting source code)
    2012-05-22 16:06:13下载
    积分:1
  • kcom
    this is visual c++ 6 project it is a Serial port excerszier software
    2010-05-31 15:51:55下载
    积分:1
  • 24bitsTo8bits
    这是一个将24位位图转换为8位位图的算法程序,用 vc++写的内容通俗易懂,注释清晰。(This is a 24-bit bitmap is converted to 8-bit map algorithm, using vc++ to write the content easy to understand, clear notes.)
    2013-11-16 11:13:21下载
    积分:1
  • 捷联惯导算法C++
    捷联惯导算法C++程序,严龚敏老师PINS工具箱C++版本(Strapdown inertial navigation algorithm C++ program, Yan Gongmin teacher PINS toolbox C++ version)
    2017-08-22 12:04:07下载
    积分:1
  • 矩阵所有运算
    矩阵的转置、行列式、秩,逆矩阵求法,矩阵的三角分解、qr分解,对称正定矩阵的乔里斯基分解及行列式值,奇异值分解,广义逆的奇异值分解,矩阵特征值与特征向量的各种计算方法(all kinds of computational method of transposition of matrix, determinant, rank, inverse of matrix,triangle decomposition, qr decomposition, cholesky decomposition and determinant value based on symmetry positive definite matrix, decomposition of singular value, decomposition of generalized inversal singular value, eigenvalue and eigenvector)
    2020-08-30 23:48:09下载
    积分:1
  • 888
    3D8光立方,动画程序!可供下载,几十种动画!(3D8 cube, animation program!Available for download, dozens of animation!)
    2020-12-25 23:19:04下载
    积分:1
  • CCS3.3
    上传的是CCS3.3的入门教程,很详细,需要的朋友可以下载下来看看。(it s the ccs3.3 pdf,it was suitable for us to learn.)
    2014-08-17 20:41:52下载
    积分:1
  • 696516资源总数
  • 106936会员总数
  • 1今日下载