-
约瑟夫环(Joseph)问题的一种描述是:编号为1,2,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始人选一个正整数作为报数上限值m,从...
约瑟夫环(Joseph)问题的一种描述是:编号为1,2,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始人选一个正整数作为报数上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止报数。报m的人出列,将他的密码作为新的m值,从它在顺时针方向的下一个人开始重新从1报数,如此下去,直至所有人全部出列为止。试设计一个程序求出出列顺序-Joseph Central (Joseph) a description of the problem is: numbered 1,2, ..., n of n individuals according to a clockwise direction around a circle, each holding a password (positive integer). The beginning of a positive integer as a candidate at a number of upper limit of m, from the first individual to embark on the clockwise direction since the beginning of the order of 1 is reported the number of stops required to report back at a few m. Those who reported m out of his password as the new value of m, in a clockwise direction from the next person to start off again from the 1, and so on, until all that out until all. Try to design a procedure to derive the column order
- 2022-02-10 01:58:28下载
- 积分:1
-
通过对一系列的 api 及 shell32.dll 的调用来实现 windows 各种标准浏览选择对话框。此源代码为 vb4 设计。对后来版本同样适用(8KB)...
通过对一系列的 api 及 shell32.dll 的调用来实现 windows 各种标准浏览选择对话框。此源代码为 vb4 设计。对后来版本同样适用(8KB)-through the series of api and the motto call to achieve the standard browser windows various options dialog. This source code for vb4 design. Later versions of the same application (8KB)
- 2022-02-09 14:42:33下载
- 积分:1
-
人机交战五子棋(VC)
学习C++编程时的一个不错练习,棋盘大小15*15。本程序是基于对话框的MFC应用程序,开发运行环境是VS 2012,主要工作就在Lee_5_ChessDlg.cpp(也即C***Dlg类中)这个文件中完成。
棋盘的位图:320*320,每格则是20*20,左边空白25,右边
- 2023-04-01 14:05:04下载
- 积分:1
-
支持十六进制/二进制编辑 支持文件内查找/十六进制输出 允许文字大小/类型/颜色/背景的设置...
支持十六进制/二进制编辑 支持文件内查找/十六进制输出 允许文字大小/类型/颜色/背景的设置 -support hexadecimal/binary file editing support within Search/hexadecimal characters allow output size/type/color/background settings
- 2022-03-21 05:13:36下载
- 积分:1
-
从记事本中读出数据并输出,一起学习一下
从记事本中读出数据并输出,一起学习一下-from the notebook had sensed data and output, together to learn about
- 2023-08-26 18:35:04下载
- 积分:1
-
具有checkbox的tr
具有checkbox的tr-checkbox with the tr
- 2023-09-07 01:30:03下载
- 积分:1
-
Itransition 模板
模板
- 2022-08-03 04:00:22下载
- 积分:1
-
A very simple chat program. You do not have to see. Only exchange it.
很简单的一个聊天程序。高手不用看的。仅作交流吧。-A very simple chat program. You do not have to see. Only exchange it.
- 2022-08-18 13:16:10下载
- 积分:1
-
VC++的共享内存封装类实例
VC++的共享内存封装类实例,实现了操作系统级的共享内存,以及共享内存映射磁盘文件功能。及时操作系统异常重启,
共享内存映射的文件数据仍然存在。
- 2023-03-05 02:20:03下载
- 积分:1
-
模拟页式虚拟存储管理中硬件的地址转换和缺页中断,采用先进先出处理缺页中断...
模拟页式虚拟存储管理中硬件的地址转换和缺页中断,采用先进先出处理缺页中断-mock-page virtual memory management hardware address translation and missing pages interruption, using FIFO interrupt handling missing pages
- 2022-04-12 17:35:12下载
- 积分:1