-
约瑟夫环
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
-
a printer by different types of users to share, when a user to use their time an...
有一个打印机被不同类型的用户共享,当某个用户使用其时,必须先检测其它用户是否在使用,假设函数inuse()当有用户使用打印机时返回1,当没有用户使用时返回0。把函数inuse()作为不同类的友元函数,请设计。-a printer by different types of users to share, when a user to use their time and must first detect whether other users in the use of the assumption that inuse function () when users return to a printer. When users do not use return 0. Inuse put function (), as different types of Friends yuan function, design.
- 2023-07-11 15:10:03下载
- 积分:1
-
第一次上载,先来个简单的贪吃蛇小游戏,C语言做的!初学作品!...
第一次上载,先来个简单的贪吃蛇小游戏,C语言做的!初学作品!-first on the first to a simple little game Snake, C language! Beginners works!
- 2022-07-13 02:28:51下载
- 积分:1
-
医院门诊管理系统,根据管理员的登录,可以进行医院门诊的管理,对病人进行住院和医用的记录...
医院门诊管理系统,根据管理员的登录,可以进行医院门诊的管理,对病人进行住院和医用的记录-Hospital out-patient management system, according to the registry administrator, you can out-patient hospital management, hospital patients and medical records
- 2022-03-23 10:31:28下载
- 积分:1
-
摩托罗拉w156驱动,由其它版本驱动修改来,moto暂时还没有官方的w156驱动,用这个先对付一下吧。...
摩托罗拉w156驱动,由其它版本驱动修改来,moto暂时还没有官方的w156驱动,用这个先对付一下吧。-Motorola w156-driven, driven by modifications to other versions, moto far there have been no official w156 driver, use this to deal with you.
- 2022-01-25 20:14:42下载
- 积分:1
-
Sql statement it is very cute
Sql statement it is very cute -SQL statement it is very cute
- 2022-12-09 23:50:03下载
- 积分:1
-
这项工程将让您把自己的MP3播放器平台,该软件是开放源代码和硬件是故意离开通用,以允许您自定义您的需求
这项工程将让您把自己的MP3播放器平台,该软件是开放源代码和硬件是故意离开通用,以允许您自定义您的需求-This project will allow you to own MP3 player platform, the software is open source and hardware is left intentionally general so as to allow you to customize your needs
- 2022-02-06 03:56:36下载
- 积分:1
-
VB 纯数字验证码识别实例
vb6.0的验证码处理,在去除干扰点时,采用中值滤波是一种不错的方法,中值滤波法是一种非线性平滑技术,它将每一像素点的灰度值设置为该点某邻域窗口内的所有像素点灰度值的中值。中值滤波的实现方法
- 2022-02-06 20:07:19下载
- 积分:1
-
桥梁结构分析的程序,可以模拟施工过程,可以考虑混凝土的收缩、徐变,湖南大学的牛人编制,国内基于这个程序开发的桥梁软件已经出现...
桥梁结构分析的程序,可以模拟施工过程,可以考虑混凝土的收缩、徐变,湖南大学的牛人编制,国内基于这个程序开发的桥梁软件已经出现-bridge structure analysis procedures can simulate the construction process, we can consider concrete shrinkage, creep, Hunan University of cattle were prepared, based on the internal procedures of the bridge software development has emerged
- 2023-06-27 10:50:04下载
- 积分:1
-
对于研究FPGA结构的人来说,这个工具是必不可少的。它把edif格式的网表文件转化为blif的VPR能识别的格式,非常有用。当然,软件还需进行编译。...
对于研究FPGA结构的人来说,这个工具是必不可少的。它把edif格式的网表文件转化为blif的VPR能识别的格式,非常有用。当然,软件还需进行编译。-FPGA structure for research, this tool is indispensable. It edif netlist file format blif into the VPR to identify the format, very useful. Of course, the software still needs to be compiled.
- 2022-05-21 22:28:07下载
- 积分:1