-
编号为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
-
将outlook2000中的内容(如信件,地址薄等)输出到文件中的程序
将outlook2000中的内容(如信件,地址薄等)输出到文件中的程序- The outlook2000 in content (for example letter, address is thin
and so on) to output in the document the procedure
- 2023-06-20 18:25:03下载
- 积分:1
-
一个最简单的wince驱动程序,适合入门
一个最简单的wince驱动程序,适合入门-step to step wince driver
- 2023-02-04 14:30:04下载
- 积分:1
-
给任意长度的字符串,加CRC校验码的c语言算法
给任意长度的字符串,加CRC校验码的c语言算法-to arbitrary length of the string, plus CRC algorithm in C Language
- 2023-04-02 22:45:02下载
- 积分:1
-
download non
下载非界面和非WEB源码 -download non-Web interface and the non-source
- 2022-08-19 13:49:49下载
- 积分:1
-
题目:一个用c 语言编写的程序,两个字符串连接程序
题目:一个用c 语言编写的程序,两个字符串连接程序-a program completed with C,which combines two strings together
- 2022-07-23 22:09:00下载
- 积分:1
-
一个模仿Windows操作系统下空当接龙的游戏.
一个模仿Windows操作系统下空当接龙的游戏.-A mimic empty when the next Windows operating system Solitaire game.
- 2022-06-25 23:15:39下载
- 积分:1
-
用Visual C++编写的窗口生成的代码,很容易理解Windows程序…
采用Visual C++编写的窗口产生代码,便于理解Windows程序运行原理及程序编写流程,窗口产生过程,句柄原理,消息队列,回调函数,窗口关闭与应用程序退出的工作关系-Using Visual C++ Prepared window generated code, easy to understand Windows program to run the principle and procedure of the preparation process, the process window, handle theory, message queues, callback function, the window closed with the application to withdraw from the working relationship between
- 2022-09-03 06:35:03下载
- 积分:1
-
详细讲解进程间通讯的四种方式:剪贴板、匿名管道、命名管道和邮槽。并比较分析这几种进程间通信的优点和缺点。...
详细讲解进程间通讯的四种方式:剪贴板、匿名管道、命名管道和邮槽。并比较分析这几种进程间通信的优点和缺点。-explain in detail the communication process in four ways : the clipboard, anonymous pipes, named pipes and mail chutes. And a comparative analysis of these types of inter-process communication advantages and disadvantages.
- 2022-05-24 02:12:54下载
- 积分:1
-
check ip address
check ip address use c sharp to do -check ip address
- 2022-07-13 23:04:41下载
- 积分:1