-
编号为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
-
This is a digital display of the source, I hope everyone from the use of
这是一个数字显示的源程序,希望大家借鉴使用-This is a digital display of the source, I hope everyone from the use of
- 2022-04-17 04:02:40下载
- 积分:1
-
This example prints out "HELLO WORLD!" by writing directly to the video memory.
This example prints out "HELLO WORLD!" by writing directly to the video memory.
- 2023-02-21 22:40:04下载
- 积分:1
-
用C++实现矩阵连乘问题
用C++实现矩阵连乘问题-C matrix to achieve continually multiply problems
- 2022-02-13 16:03:36下载
- 积分:1
-
时钟程序,PCF8563时钟芯片程序,基于单片机开发环境
时钟程序,PCF8563时钟芯片程序,基于单片机开发环境-clock
- 2022-03-19 12:22:24下载
- 积分:1
-
UASRT asynchronous serial receive routine, suitable for beginners to learn!
UASRT异步串行接收例程,适合初学者学习!-UASRT asynchronous serial receive routine, suitable for beginners to learn!
- 2022-01-23 11:13:41下载
- 积分:1
-
ASCII conversion into hexadecimal number, single
ASCII码转换成十六进制数 ,单字节BCD码小数转换成单字节十六进制小数,双字节十六进制小数转换成双字节BCD码小数,单字节十六进制数转换成双字节ASCII码 -ASCII conversion into hexadecimal number, single-byte BCD decimal converted into single-byte hexadecimal minority. double-byte hexadecimal decimal converted into double byte BCD minority. single-byte hexadecimal number into double byte ASCII, etc.
- 2022-12-02 14:30:03下载
- 积分:1
-
DAC0832的示例程序,希望对大家有帮战哦!
DAC0832的示例程序,希望对大家有帮战哦!-Examples DAC0832 procedures, in the hope that everyone has to help fight Oh!
- 2022-01-22 03:36:30下载
- 积分:1
-
M序列的源代码,用于基带信号发生器的设计
M序列的源代码,用于基带信号发生器的设计
-M series source code for the base-band signal generator design
- 2022-03-09 23:53:01下载
- 积分:1
-
T6963C的24064的LCD显示程式
T6963C的24064的LCD显示程式-T6963 24064 of the program LCD Display
- 2022-07-26 22:32:46下载
- 积分:1