-
编号为1,2,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数),一开始人选一个正整数作为报数上限m,从第一个人开始按顺时针方向从自1开始顺序报数,...
编号为1,2,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数),一开始人选一个正整数作为报数上限m,从第一个人开始按顺时针方向从自1开始顺序报数,报道m时停止报数。报m的人出列,将他的密码作为新的m值,从他的顺时针方向上的下一个人开始重新从1报数,如此下去,直至所有人全部出列为止,设计一个程序求出出列顺序。采用单向循环链表模拟此过程,按照出列的顺序印出各人的编号测试数据:m的初值为20;n=7,7个人的密码依次为:3,1,7,2,4,8,4,首先m的值为6(正确的出列顺序应为6,1,4,7,2,3,5)-No. 1, 2, ..., n n clockwise direction by individuals sitting around a circle, each holding a password (positive integers), a candidate started as a positive integers m ceiling on the number of reported from the first individuals to embark on the clockwise direction from the start sequence from a few newspaper reports m reportedly stopped a few. M reported out of the list of his password as a new value m, from the clockwise direction on the next re-started from a few reported so on, until all out all out, the design of a procedure sought out the order out. Listless one-cycle simulation process and follow the sequence shown in the numbers printed each test data : m for the initial 20; N = 7,7 personal passwords were : 3,1,7,2,4,8
- 2022-01-24 15:11:40下载
- 积分:1
-
深入浅出ShellExecute
深入浅出ShellExecute -Explain the profound things of Shell Execute.
- 2022-01-28 23:59:35下载
- 积分:1
-
MFC+ACESS数据库基本操作
这是一个基于MFC的单文档的应用程序,它使用了ACESS数据库,本小程序包含了操作数据库的几种基本操作:增加记录,插入记录,查询记录,修改记录,对记录进行排序等。是大家在MFC架构下操作数据的的不错参考,所有代码经过调试,均能运行。代码精简,精炼。能给初学者提供较好的知道。是连接操作数据的模板程序。
- 2022-03-17 20:32:55下载
- 积分:1
-
C++课件,内容通俗易懂,很适合初学者使用.
C++课件,内容通俗易懂,很适合初学者使用.-C++ Courseware, content user-friendly, it is suitable for beginners to use.
- 2022-01-25 14:05:57下载
- 积分:1
-
c8051f120ANI0.7脚AD程序,已经测试过了,好使的,希望能对新手有所帮助!...
c8051f120ANI0.7脚AD程序,已经测试过了,好使的,希望能对新手有所帮助!-c8051f120ANI0.7 feet AD procedures already tested, so. The hope is to help novice!
- 2022-09-26 00:15:03下载
- 积分:1
-
一个经典网络性能测量工具,可以实现对吞吐量等网络性能的测量分析...
一个经典网络性能测量工具,可以实现对吞吐量等网络性能的测量分析-A classical network performance measurement tool, you can achieve throughput measurements, such as network performance analysis
- 2022-02-28 16:19:34下载
- 积分:1
-
利用 matlab 的手势识别
使用MATLAB使用了美国手语的网络摄像头的手势识别。
- 2022-02-14 03:21:24下载
- 积分:1
-
Visual C++角色扮演游戏程序设计 》一书中的一个完整PRG游戏源代码
这是一个电脑上的简单PRG游戏,目前还没有打开运行过,应为电脑里面缺少winlib.h,但是看了源码,还是觉得写得很有参考价值。本人也是初学者,四处找各种源码来胡乱研究,希望分享的一些源码能够对他人有所帮助。本小游戏源码用VC打开,就这么多。 感谢原作者,请下载的人不要用于任何商业用途,保护原创者的权益。
- 2022-03-17 11:07:22下载
- 积分:1
-
xp风格网页
xp风格网页-xp style page
- 2022-03-05 22:03:39下载
- 积分:1
-
ssm 程序
系统仿真程序
作为水 reseriour
单个服务器
双服务器
泊松分布
- 2022-09-27 20:15:02下载
- 积分:1