-
本程序针对约瑟夫问题的描述:编号为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
-
全排列算法,递归实现全排列,可以对任意字符实现全排列,但长度有限制...
全排列算法,递归实现全排列,可以对任意字符实现全排列,但长度有限制-Full-order algorithm, recursive realization of the entire array can be arbitrarily wide array of characters, but there are restrictions on the length of
- 2023-04-05 02:15:04下载
- 积分:1
-
用的C++.NET,数据采用XML格式存储,是本人课程设计的题目,跟大家分享...
用的C++.NET,数据采用XML格式存储,是本人课程设计的题目,跟大家分享-Used C++. NET, the use of XML format for data storage, is the title of my course design, like to share with you
- 2022-05-14 10:54:17下载
- 积分:1
-
运行或t停止进程
此示例显示如何运行任何进程或杀死进程运行。
这是非常简单和容易学。
在未来我将上传很多很多例子。
- 2022-04-06 22:33:00下载
- 积分:1
-
关于ttree的源码,大家可以相互学习下了
关于ttree的源码,大家可以相互学习下了-On the source ttree, everyone can learn from each other under the
- 2022-04-23 20:09:11下载
- 积分:1
-
向大家介绍如何使用VC++创建一个标准的MFC WinSock ActiveX控件,源代码非常完整,提供接口、与相应事件挂钩。实例涉及到VARIANT、SAFE...
向大家介绍如何使用VC++创建一个标准的MFC WinSock ActiveX控件,源代码非常完整,提供接口、与相应事件挂钩。实例涉及到VARIANT、SAFEARRAY、BSTR的详细使用方法。另外还提供了WinSock的详细开发步骤,以及如何响应网络超时,网络断开的事件方法以及在VC、VB调用该控件的方法。-To tell you how to use VC++ to create a standard MFC WinSock ActiveX control, source code is very complete and provide interfaces to link with the corresponding event. Examples relate to the VARIANT, SAFEARRAY, BSTR details of use. WinSock also provided a detailed development process, as well as how to respond to network timeouts, network disconnect event methods as well as VC, VB calls the control method.
- 2023-07-18 07:55:03下载
- 积分:1
-
智能家居app控制界面设计
该app可用于智能家居控制的界面实现,里面包含多个界面,可用于wifi模块连接app,界面设计简便,代码有注释,可移植性好。
- 2022-02-04 16:55:01下载
- 积分:1
-
一个绘制实时曲线的好例子
一个绘制实时曲线的好例子-a good example of the curve
- 2022-02-11 21:59:32下载
- 积分:1
-
S3C2443的读Nand程序,注意:使用ARM revw2.2编译器而非ADS1.2
S3C2443的读Nand程序,注意:使用ARM revw2.2编译器而非ADS1.2-Nand read the S3C2443 procedures Note: the use of ARM revw2.2 instead of the compiler ADS1.2
- 2022-07-18 03:10:36下载
- 积分:1
-
ASIFT算法源代码
asift算法,里面有算法描述,生成,还有具体的代码很多啊,用于特征匹配,很好的思想啊,好好看看,值得学习啊,真的很有用啊
- 2022-05-07 11:50:33下载
- 积分:1