-
本程序针对约瑟夫问题的描述:编号为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
-
the iteration algorithm of R(d)
限失真函数的迭代算法,完成限失真函数的R(d)的迭代计算,并画出R(d)函数曲线-the iteration algorithm of R(d)
- 2023-08-29 11:05:04下载
- 积分:1
-
程序员网上考试系统是我毕业的时候做的系统,程序是三层C/S结构的,不过我是为了应付毕业论文而做的,有好多功能还没有完善,希望喜欢的朋友可以去完善它。...
程序员网上考试系统是我毕业的时候做的系统,程序是三层C/S结构的,不过我是为了应付毕业论文而做的,有好多功能还没有完善,希望喜欢的朋友可以去完善它。-The system is a exam system,it can be used
the programer exam.Because some of things,it not
enough strong.if you want do,you can make it more
wonderful.
- 2022-06-17 09:12:41下载
- 积分:1
-
c Builder environment multithreaded application design
c++ Builder环境下多线程应用程序设计-c Builder environment multithreaded application design
- 2023-05-06 10:50:03下载
- 积分:1
-
用ASP.NET来编程的商店网站的源代码
用ASP.NET来编程的商店网站的源代码-Programming using ASP.NET to store the source code of web site
- 2022-03-18 16:32:00下载
- 积分:1
-
基于c++语言的一个链表的实现程序,内置链表类函数.
基于c++语言的一个链表的实现程序,内置链表类函数.-Based on c++ Language procedures realize a list of built-list functions.
- 2022-07-05 00:18:21下载
- 积分:1
-
用于枚举驱动器类型~显示得到的驱动器类型,现已修改,用于H盘,可自行修改...
用于枚举驱动器类型~显示得到的驱动器类型,现已修改,用于H盘,可自行修改-Drive type for the enumeration to be ~ shows the drive type, has been modified for the H site, they are free to modify
- 2023-01-28 16:20:03下载
- 积分:1
-
segmentation documentation procedures, documents can be separated into different...
分割文件的程序, 可以将文件分割成不同的大小, 并且可以将分割的文件合并.-segmentation documentation procedures, documents can be separated into different sizes, and can be combined in the paper division.
- 2022-03-23 17:20:47下载
- 积分:1
-
c++俄罗斯方块
桌面小游戏:俄罗斯方块 (含源程序)【软件简介】 虽然是非常古老的小游戏, 但现在仍然百玩不厌。 这个程序用BCB实现也非常简单。 为了让大家看清程序的算法, 程序的界面尽量简单, 没有过多的修饰。【游戏操作】 左、右、下移动光标键: 可移动下落的方块; 空格、回车分别按顺时针和逆时针方向旋转下落的方块; Esc: 暂停/继续; F10: 开始新游戏; 其它操作可通过选择菜单来实现。【计分方法】 只是落下方块: 1 分; 同时消去一行: 10 分; 同时消去两行: 30 分; 同时消去三行: 50 分; 同时消去四行: 80 分; 如果你的分数取得了名次, 会显示对话框提示你输入名字, 你的名字就会加入英雄榜。 选择菜单: 游戏→英雄榜: 可查看英雄榜的内容。【文件内容】 Games 文件夹:游戏执行文件 Source 文件夹:游戏源程序 (Borland C++ Builder 6.0)
- 2022-04-07 12:53:30下载
- 积分:1
-
用VC编写的实现图象透明的小程序,适合学习VC图象编程的人作参考
用VC编写的实现图象透明的小程序,适合学习VC图象编程的人作参考-VC Image prepared by the small transparent procedures for learning programming VC images of the people with reference
- 2022-12-02 08:30:03下载
- 积分:1