-
约瑟夫环
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
-
本程序是一个简单的对电梯运行过程进行描述的小程序
本程序是一个简单的对电梯运行过程进行描述的小程序-this procedure is a simple process of running the elevator description of small programs
- 2022-06-17 18:00:29下载
- 积分:1
-
一个图书管理系统,还是又一定的功能,供大家研究.
一个图书管理系统,还是又一定的功能,供大家研究.-a library management system, or be in a certain functions, for everyone to consider.
- 2022-01-25 19:16:52下载
- 积分:1
-
Equivalence
等价
- 2023-01-20 07:40:03下载
- 积分:1
-
专业的评标管理系统,包括工程管理,开标数据采集,评标等整套完整业务流程,代码清晰....
专业的评标管理系统,包括工程管理,开标数据采集,评标等整套完整业务流程,代码清晰.-The evaluation of the management of major systems, including project management, opening the data collection, evaluation, such as a complete set of business processes, clear code.
- 2023-03-06 19:25:03下载
- 积分:1
-
用于lex和yacc的c++及c语言的文法,可用来构造C++语言的编译器
用于lex和yacc的c++及c语言的文法,可用来构造C++语言的编译器-for lex and generates a c c language and grammar, can be used to construct the C language compiler
- 2022-11-27 11:55:03下载
- 积分:1
-
红路灯效果,南北杉树5秒,东西一秒,重复N次,安逸人家内存、退出...
红路灯效果,南北杉树5秒,东西一秒,重复N次,安逸人家内存、退出-hld function,nanbei 5miao ,1miao shanshuo ,
- 2022-12-14 01:05:03下载
- 积分:1
-
C++封装IOCTL操作
采用C++对Ioctl接口进行二次封装。封装目的就是使用简洁化,统一化
- 2023-07-29 06:35:03下载
- 积分:1
-
good opencv entry documents, the follow
很好的opencv入门文档,后续上传其他相关-good opencv entry documents, the follow-up to other relevant Upload
- 2022-08-23 22:25:26下载
- 积分:1
-
设计模式中单件类的例子,用VC++开发,有源码和可执行程序,直接编译运行。是根据李建忠的设计模式讲义编写的例子,对初学设计模式的人很有帮助。...
设计模式中单件类的例子,用VC++开发,有源码和可执行程序,直接编译运行。是根据李建忠的设计模式讲义编写的例子,对初学设计模式的人很有帮助。-Design Patterns in a single category of examples, using VC++ development, there is source code and executable programs, run the compiler directly. LI Jian-zhong design is based on notes prepared by the example model of learning design patterns were very helpful.
- 2022-10-18 17:35:03下载
- 积分:1