-
本程序针对约瑟夫问题的描述:编号为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
-
很简单的mp3播放器,教你如何实现mp3的实现方法
很简单的mp3播放器,教你如何实现mp3的实现方法-Very simple mp3 player, mp3 teach you how to achieve the realization of methods
- 2022-02-11 15:23:04下载
- 积分:1
-
实现方法: 用MFC的程序向导生成一个常规DLL,在常规DLL内有一派生自CWinApp的实例,再用MFC的程序向导生成一个MFC EXE应用程序,把MFC E...
实现方法: 用MFC的程序向导生成一个常规DLL,在常规DLL内有一派生自CWinApp的实例,再用MFC的程序向导生成一个MFC EXE应用程序,把MFC EXE应用程序中 CAppView,CMainFrame,CAppDocument的文挡和RES目录下的资源拷贝到常规DLL项目中,添加到项目中,编译生成一DLL,在另外一个WIN32应用程序中,启动一线程,在线程函数中显式装载该DLL,取的该DLL内的当前线程, CWinThread *pThread=GetCurrentThread() pThread->Run() 就可装载启动常规DLL内应用程序框架.-method: a normal DLL file has been created with the program wizard and there is an instance generated from CWinApp in the DLL file.Create another MFC EXE appliaction and copy CAppView,CMainFram,CAppDocument and the resources in RES directory to the normal DLL and add to the projec and compile and generate a DLL. In a Win32 application, start a thread which loads the DLL with codes, get the running thread, ie.CWinThread*pThread=GetCurrentThread(), then,pThread->Run() executes the loading and start the execution of the application framework in the normal DLL file.
- 2022-07-13 07:36:52下载
- 积分:1
-
易语言写的留言工具,可以仿照做出登陆器。
易语言写的留言工具,可以仿照做出登陆器。-Easy language to write the message tool, you can follow to make landers.
- 2022-04-12 15:28:08下载
- 积分:1
-
实现二维变换的一些功能
实现二维变换的一些功能-2D transformation of some functional
- 2022-03-24 06:25:38下载
- 积分:1
-
婚姻匹配器
采用MFC 框架更加某种规则实现最佳婚姻配对 (中兴程序大赛作品) 基于单文档的应用程序 学习MFC的童鞋可以下载看看
- 2022-03-19 08:32:54下载
- 积分:1
-
PowerBuilder行命令编译器,完全可以代替PowerBuilder.你需要PowerBuilder基本环境....
PowerBuilder行命令编译器,完全可以代替PowerBuilder.你需要PowerBuilder基本环境.-PowerBuilder compiler command line, we can replace the PowerBuilder. You need basic PowerBuilder environment.
- 2022-02-14 04:15:06下载
- 积分:1
-
AD board dsplf2407a routines
dsplf2407a板上 AD 例程 -AD board dsplf2407a routines
- 2022-11-04 16:20:03下载
- 积分:1
-
一个用VC编成的计算器小程序模仿WINDOWS的计算器的格式
一个用VC编成的计算器小程序模仿WINDOWS的计算器的格式-a VC into the calculator small program to imitate the Windows calculator format
- 2022-02-04 16:39:14下载
- 积分:1
-
双三次B样条曲线的拟合代码,有助于进一步了解B样条曲线
双三次B样条曲线的拟合代码,有助于进一步了解B样条曲线-Bicubic B-spline curve fitting code, and contribute to a better understanding of B-spline curve
- 2022-02-22 08:17:25下载
- 积分:1