-
编号为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
-
1602 allcgram 字符两行循环显示
1602 allcgram 字符两行循环显示-1602 allcgram two characters showed cyclic
- 2023-01-10 11:40:04下载
- 积分:1
-
a compilation procedure but forgot what
一个汇编程序 不过什么忘了-a compilation procedure but forgot what
- 2022-03-19 02:12:42下载
- 积分:1
-
循环冗余校验与编译实现(计算机网络…
crc循环冗余校验用汇编实现(计算机网络作业)-crc cyclic redundancy check with the compilation of implementation (computer network operations)
- 2023-07-15 12:00:03下载
- 积分:1
-
Conjugate gradient method
共轭梯度法,以及几种常见的的优化方法程序-Conjugate gradient method
- 2022-03-17 17:46:35下载
- 积分:1
-
还是一个asm编的VXD例子
还是一个asm编的VXD例子-asm or a series of examples VXD
- 2023-04-16 10:35:03下载
- 积分:1
-
这是一个汇编程序,是个简单的闹钟程序,可以获取系统时间、可以校时!...
这是一个汇编程序,是个简单的闹钟程序,可以获取系统时间、可以校时!-This is an assembler, is a simple alarm clock program, you can get the system time, to school, when!
- 2022-02-15 20:34:26下载
- 积分:1
-
单源最短路径问题
单源最短路径问题-single source shortest path problem
- 2023-01-05 19:20:03下载
- 积分:1
-
用汇编语言做温度控制系统程序,基本的汇编语言介绍
用汇编语言做温度控制系统程序,基本的汇编语言介绍-huibianzuowendukongzhichengxu
- 2022-03-19 03:30:18下载
- 积分:1
-
The course is designed to use the three interface chip, 8253,8255,8259 in the p...
该课程设计使用了三块接口芯片,8253、8255、8259;在程序中需要对8255芯片的控制口进行修改,改成自己所用实验板的端口-The course is designed to use the three interface chip, 8253,8255,8259 in the program need to control the port 8255 to modify the chip, into his own experimental port board
- 2022-08-17 07:21:27下载
- 积分:1