-
约瑟夫环
1. 本演示程序利用一循环链表,每个结点为一人,类似将人按顺时针方向围坐一圈,每个结点包括,号码,密码.号码是作为排的顺序.密码用来作为下一次报数...
约瑟夫环
1. 本演示程序利用一循环链表,每个结点为一人,类似将人按顺时针方向围坐一圈,每个结点包括,号码,密码.号码是作为排的顺序.密码用来作为下一次报数的数字.当走到结尾时,再下个结点便循环回去,依此类推.
2. 演示程序以用户与计算机的对话方式执行,用户输入相应的数据,输出结果显示在其后。,即总结点数,和密码.
3. 程序执行的命令包括:1)创建链表 2)寻找结点 3)删除结点
4. 测试数据测试数据:m初始值20,n=7,7个人密码依次为:3,1,7,2,4,8,4。首先m值为6,正确出列顺序为6,1,4,7,2,3,5。
-Josephus 1. The demonstration program using a chain cycle, each node to a person, similar to a clockwise direction by people sitting circle, and each node include numbers, Password. As the number is the sequence. used as a password the next few reported figures. When reached at the end, the next nodes will cycle back, and so forth. 2. Demonstration Program to computer users with implementation of the dialogue, the corresponding user input data and output results in later. , Summed up the quota, and password. 3. Procedures for the implementation of the order include : 1) Create List 2) Find node 3) delete nodes 4. test data test data : the initial value of 20 m, n = 7, 7 PIN followed : 3,1,7,2,4,8,4. M value fo
- 2022-07-24 02:51:37下载
- 积分:1
-
WindowsMobile注册表查看器,十分实用。
WindowsMobile注册表查看器,十分实用。-Windows registry viewer, very useful.
- 2022-07-18 20:41:20下载
- 积分:1
-
USB工具USB开发工具
usb开发工具 usb开发工具-usb tools usb development tools
- 2022-04-15 16:05:20下载
- 积分:1
-
One can use the keyboard up and down about the movement of aircraft, and with co...
一个可以用键盘的上下左右移动的飞机,并且带有颜色-One can use the keyboard up and down about the movement of aircraft, and with color
- 2022-04-30 05:43:19下载
- 积分:1
-
雷挖了一个很好的来源,真的很好,舛添是的,它是用C编写的依据。
一个不错的挖雷的源代码,真的不错,舛不错,是用C++写的,很好-Ray dug a good source, really good, Masuzoe Yes, it is written using C and very good
- 2022-06-27 18:20:24下载
- 积分:1
-
8路模拟数据采集,希望能帮助到需要的朋友,加油。
8路模拟数据采集,希望能帮助到需要的朋友,加油。-8-channel analog data acquisition, the need to help friends and refueling.
- 2022-01-25 20:48:00下载
- 积分:1
-
一个对数组越界检查的小程序
一个对数组越界检查的小程序-one pair of arrays of small cross-border inspection procedures
- 2022-01-26 02:31:24下载
- 积分:1
-
通讯录实现新建,添加查找,删除,的基本功能
简易
通讯录实现新建,添加查找,删除,的基本功能
简易-Address Book in new, add to find, delete, the basic functions of the Summary
- 2022-02-21 06:46:58下载
- 积分:1
-
很好的的 坦克游戏代码。。。可以引用里面的类
很好的的 坦克游戏代码。。。可以引用里面的类-good game code tanks. . . They invoke the category
- 2022-10-28 13:20:03下载
- 积分:1
-
PHP Getting Started with the sample source code for the novice to start learning...
ASP 程序设计与实例书的配套答案,ASP基础入门,供新手使用~非常有效-PHP Getting Started with the sample source code for the novice to start learning to use ~ very useful oh
- 2022-03-18 20:29:18下载
- 积分:1