-
编号为1,2,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数),一开始人选一个正整数作为报数上限m,从第一个人开始按顺时针方向从自1开始顺序报数,...
编号为1,2,…,n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数),一开始人选一个正整数作为报数上限m,从第一个人开始按顺时针方向从自1开始顺序报数,报道m时停止报数。报m的人出列,将他的密码作为新的m值,从他的顺时针方向上的下一个人开始重新从1报数,如此下去,直至所有人全部出列为止,设计一个程序求出出列顺序。采用单向循环链表模拟此过程,按照出列的顺序印出各人的编号测试数据:m的初值为20;n=7,7个人的密码依次为:3,1,7,2,4,8,4,首先m的值为6(正确的出列顺序应为6,1,4,7,2,3,5)-No. 1, 2, ..., n n clockwise direction by individuals sitting around a circle, each holding a password (positive integers), a candidate started as a positive integers m ceiling on the number of reported from the first individuals to embark on the clockwise direction from the start sequence from a few newspaper reports m reportedly stopped a few. M reported out of the list of his password as a new value m, from the clockwise direction on the next re-started from a few reported so on, until all out all out, the design of a procedure sought out the order out. Listless one-cycle simulation process and follow the sequence shown in the numbers printed each test data : m for the initial 20; N = 7,7 personal passwords were : 3,1,7,2,4,8
- 2022-01-24 15:11:40下载
- 积分:1
-
这是一个由用户界面实现的计算器,可用鼠标直接点击操作,包含了使用文档,说明文档和开发文档...
这是一个由用户界面实现的计算器,可用鼠标直接点击操作,包含了使用文档,说明文档和开发文档-This is a user interface realized by the calculator, can be used to operate a mouse click, including the use of documents, documentation and development documentation
- 2022-03-23 15:11:49下载
- 积分:1
-
This is my first game Snake, doing a rough, hoping for some help beginners. If y...
这是我的第一个游戏贪吃蛇,做的比较粗糙,希望对于初学者有所帮助了。如果有什麽问题请发我邮箱seu_liujie@yahoo.com.cn。当然我更愿意与大家交流心得了。 -This is my first game Snake, doing a rough, hoping for some help beginners. If you have any questions please send me E-mail seu_liujie@yahoo.com.cn. Of course, I am more willing to share their experience with you has.
- 2022-03-05 15:02:48下载
- 积分:1
-
超市扫码结账代码
小型便利店进销存管理系统,该系统配扫码仪一起使用,进货扫码入库,销货扫码销货,制定价格种类,记账,纯客户端应用程序,如计算机出现故障,可备份数据库。
- 2022-03-05 11:44:21下载
- 积分:1
-
利用SetWindowsHookEx方法,建立SHELL钩子,对所有打开关闭的进程进行记录。...
利用SetWindowsHookEx方法,建立SHELL钩子,对所有打开关闭的进程进行记录。-Using SetWindowsHookEx for ways to build SHELL hook, closed to all open records process.
- 2023-02-05 01:15:03下载
- 积分:1
-
一个网络聊天的东西,类此
一个网络聊天的东西,类此-an Internet chat things like this
- 2022-12-10 13:35:03下载
- 积分:1
-
This is my learning process of their VB series as a small program is about the n...
这是我在学习VB过程中自己所编的一个小程序,是关于统计字母个数的。-This is my learning process of their VB series as a small program is about the number of letters.
- 2022-03-28 10:29:49下载
- 积分:1
-
简单的计算器程序,能够进行科学计算,即输入表达式之后可以得到结果,而且支持sin,cos,ln等的计算...
简单的计算器程序,能够进行科学计算,即输入表达式之后可以得到结果,而且支持sin,cos,ln等的计算-Simple calculator program, to carry out scientific computing, that is, after the importation of expression can be the result of, and support the sin, cos, ln, such as the calculation of
- 2022-08-14 16:17:16下载
- 积分:1
-
分析本机所有网站留下的cookies信息。可以获取部分网站用户信息等。...
分析本机所有网站留下的cookies信息。可以获取部分网站用户信息等。-Analysis of the machine left the cookies for all sites of information. Website users can access some information.
- 2022-04-20 17:49:25下载
- 积分:1
-
wchar_t和char互相转换的例子,例子中应用了MultiByteToWideChar和WideCharToMultiByte两个函数...
wchar_t和char互相转换的例子,例子中应用了MultiByteToWideChar和WideCharToMultiByte两个函数-wchar_t and char conversion examples of each other, for example, the application of the two functions MultiByteToWideChar and WideCharToMultiByte
- 2022-10-27 15:15:03下载
- 积分:1