-
本程序针对约瑟夫问题的描述:编号为12,……n的n个人按顺时针方向围成一圈,每人持有一个密码(正整数),一开始任选一个正整数作为报数上限值m,从第一个人开始按顺...
本程序针对约瑟夫问题的描述:编号为12,……n的n个人按顺时针方向围成一圈,每人持有一个密码(正整数),一开始任选一个正整数作为报数上限值m,从第一个人开始按顺序时针方向自1开始顺序报数,报道m时停止报数,报m的人处列将他的密码作为新的m值,从他在顺时针方向上的下一个人开始重新从1报数,如此下去,直至所有人全部出列为止。利用单向循环链表存储结构模拟此过程,按照出列的顺序印出各人的编号。
演示程序以用户和计算机的对话方式执行,即在计算机终端上显示“提示信息”下,用户输入循环人数n和每人的密码。-This procedure description specifically for Joseph problem: The serial number is 12, ... The n n individual surrounds the ready-made one circle according to the clockwise sense , each person holds (positive integer) a password, one positive integer beginning to assume a post of selections is upper limits ms numbering off, direction starts the hour hand beginning from the first people according to order from 1 numbering off in proper order , stop numbering off when reporting m, the person place column reporting m looks on his password as new m value , the individual begins to number off again from 1 , getting down like this from his time as soon as going ahead in clockwise sense, until proprietor all till leaving self s place in the ranks.
- 2022-10-13 13:15:03下载
- 积分:1
-
水声信号的处理水下机器人对目标的定位并提供反馈信息
水声信号的处理水下机器人对目标的定位并提供反馈信息-The location of handling underwater robot for goal of underwater acoustic signal and offer feedback information
- 2022-03-23 15:16:55下载
- 积分:1
-
系统会自动删除调试和发布目录,所以请…
The system will automatically delete the debug and release directory, so please do not file on these two directory
- 2023-09-06 04:55:04下载
- 积分:1
-
一篇很好的有关提取关键帧的论文,介绍了多种提取方法,值得一看。...
一篇很好的有关提取关键帧的论文,介绍了多种提取方法,值得一看。-A very good paper about extracting the key frames, introduced a variety of extraction methods, worth a visit.
- 2022-03-02 09:18:09下载
- 积分:1
-
很好屏幕录像代码
非常简单好用的视频录制代码,
.子程序 _摄像头数_被单击
.如果 (摄像头数.标题 = “2摄像头”)
镜头1单选框.禁止 = 假
镜头2单选框.禁止 = 假
视频设备2.可视 = 真
视频设备2.当前来源 = 1
视频设备2.预览 (真, 60)
视频设备2.设置视频输入 ()
摄像头数.标题 = “3摄像头”
来源按钮.标题 = “查看”
镜头1单选框.选中 = 真
返回 ()
请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-03-05 22:51:23下载
- 积分:1
-
Labview读写文本文件
该文件是利用基于计算机windows系统的Labview软件进行的程序编辑,可以实现对文本文件的输入和读取。该文件是在可视化平台进行操作和程序编辑的,具有灵活简便,易于读者理解,扩展程度高等优点。同时,由于作者能力水平有限,编辑的文件比较简单,仅供教学和平时学习参考,有不当之处敬请批评指正!
- 2023-02-04 22:25:02下载
- 积分:1
-
mp3编码程序
采用C语言编写,可将WAV格式的文件编码成为MP3文件。编码格式为MPEG1 Layer3.有止标程序,可将例子里的WAV文件成功编码成MP3文件。
- 2022-10-17 23:15:03下载
- 积分:1
-
用delphi语言实现的一个关于宋词鉴赏,查询,删除的使用系统。...
用delphi语言实现的一个关于宋词鉴赏,查询,删除的使用系统。-use of a language of the Song Ci Appreciation, inquiries, and deleted using the system.
- 2023-05-15 02:50:03下载
- 积分:1
-
上三角矩阵压缩存储类,用c++描写的,数据结构中的
上三角矩阵压缩存储类,用c++描写的,数据结构中的-Upper triangular matrix stored compression type, using c++ description, data structure
- 2023-03-18 06:15:03下载
- 积分:1
-
xp界面库,利用它可很容易开发xp界面
xp界面库,利用它可很容易开发xp界面-xp interface library, it can use to easily develop xp interface
- 2023-09-02 14:10:05下载
- 积分:1