-
本程序针对约瑟夫问题的描述:编号为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
-
强大的图像处理库 CXImage 利用VS2012编译修改成功
本人在网上找了很久的CXImage库,强大的开源图像处理库,非常适合VC下开发图像处理的小伙伴,而且修改了错误,利用VS2012编译通过。
- 2022-05-30 09:48:26下载
- 积分:1
-
The main image rotation, translation, and some commonly used transform
主要完成图像的旋转,平移,和一些常用的变换-The main image rotation, translation, and some commonly used transform
- 2022-02-13 01:47:42下载
- 积分:1
-
如何在桌面和程序菜单创建快捷方式的源代码,很不错哦
如何在桌面和程序菜单创建快捷方式的源代码,很不错哦-how the desktop and menu shortcuts to create the source code, oh very good
- 2023-04-07 12:30:03下载
- 积分:1
-
C++, polynomial addition and multiplication, can help you run a simple program
C++的多项式的加法与乘法,能够帮助你运行简单的程序-C++, polynomial addition and multiplication, can help you run a simple program
- 2022-03-03 21:37:05下载
- 积分:1
-
FANUC LADDER-III 6.9 汉化包
本汉化包适用于FANUC LADDER-III 6.9,完全汉化。
- 2022-01-25 23:09:59下载
- 积分:1
-
一款很好的污染监测系统,专为环保局开发的,用vc++实现的,值得学习...
一款很好的污染监测系统,专为环保局开发的,用vc++实现的,值得学习-A good pollution monitoring system, developed specifically for the Environmental Protection Agency, using vc++ Achieved, it is worth learning
- 2023-07-29 01:25:04下载
- 积分:1
-
一个跨平台的C++ 获取可执行文件运行路径的代码。 GetMoudleFileName...
一个跨平台的C++ 获取可执行文件运行路径的代码。 GetMoudleFileName-A cross-platform exeuctable target full path. used GetMoudleFileName in win32 and readlink in linux
- 2022-02-05 00:42:28下载
- 积分:1
-
java learning memorandum
java学习备忘录-java learning memorandum
- 2022-12-18 21:30:03下载
- 积分:1
-
路由器DV算法的模拟,功能齐全,可选择trace深度,VS9开发
路由器DV算法的模拟,功能齐全,可选择trace深度,VS9开发-Router DV algorithm simulation, functional and choose trace depth, VS9 Development
- 2023-07-04 20:00:04下载
- 积分:1