-
编号为1,2… n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数的上限值m,从第一个人开始按顺时针方向自1开始顺序报数,...
编号为1,2… n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数的上限值m,从第一个人开始按顺时针方向自1开始顺序报数,报到m时停止报数,报m的人出列,将他的密码作为新的m值,从他的顺时针方向上的下一个开始重新从1报数,如此下去,直至所有人全部出列为止,设计一个程序求出出列顺序。
(1)利用单循环链表作为存储结构模拟此过程;
(2)键盘输入总人数、初始报数上限值m及各人密码;
(3)按照出列顺序输出各人的编号。-Numbered 1,2 ... n of the n individuals sitting clockwise circle, each holding a password (positive integer). An optional start a positive integer as the number of reported upper limit of m, from the first person to embark on the clockwise direction starting from a sequence reported the number of stop newspaper report m the number of people who reported m out of the column, as his password The new m value, in a clockwise direction from his next start back from a newspaper a few, and so on, until all all out of the column until a program designed to find out the column order. (1) the use of one-cycle simulation in this linked list storage structure as a process (2) the total number of keyboard input, the initial report and the person m the upper limit o
- 2023-05-21 04:10:03下载
- 积分:1
-
主要是对成绩进行输入、排序、按名次输出的一个程序
主要是对成绩进行输入、排序、按名次输出的一个程序 -are the major achievements for input, scheduling, according to a ranking procedure output
- 2022-05-05 11:40:36下载
- 积分:1
-
注意浮点算法
说明FPU算法和浮点运算的算法
- 2023-07-14 18:20:04下载
- 积分:1
-
automatically from cars
自 动 往 返 小 汽 车-automatically from cars
- 2022-04-20 22:17:59下载
- 积分:1
-
the GAL compiler tool to prepare for GAL chip, and can be converted into machine...
Atmel提供的GAL编译工具,对GAL芯片进行编写,以及可转换成机器码-the GAL compiler tool to prepare for GAL chip, and can be converted into machine code
- 2022-04-27 10:21:59下载
- 积分:1
-
用VB做的一个简单通讯录
用VB做的一个简单通讯录-VB do a simple directory
- 2022-07-07 19:57:40下载
- 积分:1
-
用C++实现银行的模拟
用C++实现银行的模拟-C Bank"s simulation
- 2023-08-16 01:35:10下载
- 积分:1
-
receiving and processing subroutine. Can be used as a general program
这是键盘接收处理子程序。可以当作通用程序使用-receiving and processing subroutine. Can be used as a general program
- 2023-04-08 14:10:03下载
- 积分:1
-
24C01的汇编驱动程序。直接解压。 有注释
24C01的汇编驱动程序。直接解压。 有注释-24C01 compilation driver. Direct decompression. It Notes
- 2022-03-17 06:21:40下载
- 积分:1
-
捕捉视频VB编写, 捕捉视频VB编写,捕捉视频VB编写
捕捉视频VB编写, 捕捉视频VB编写,捕捉视频VB编写-VB prepared to capture video, capture video prepared VB, VB prepared to capture video
- 2023-05-08 17:05:03下载
- 积分:1