-
编号为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
-
汇编控制扬声器演奏音乐
汇编控制扬声器演奏音乐-Series loudspeakers playing music control
- 2023-01-05 03:45:03下载
- 积分:1
-
8259A实验程序,可以实现中断实验,已经在星眼上运行了,是非常不错的...
8259A实验程序,可以实现中断实验,已经在星眼上运行了,是非常不错的-this is 8259a
- 2022-07-07 22:23:07下载
- 积分:1
-
此程序为热水器控制板用,为我公司资深程序员开发.
此程序为热水器控制板用,为我公司资深程序员开发.-procedure for water heaters, control panel used in our company for the development of experienced programmers.
- 2022-05-09 02:31:25下载
- 积分:1
-
MSP430C_p410例程如要更多资料请联系我.
MSP430C_p410例程如要更多资料请联系我.-MSP430C_p410 routines to more information please contact me.
- 2022-03-06 10:30:34下载
- 积分:1
-
T6963C的24064的LCD显示程式
T6963C的24064的LCD显示程式-T6963 24064 of the program LCD Display
- 2022-07-26 22:32:46下载
- 积分:1
-
科学与工程数值算法
c#包括插值,微分方程的数值解法等
科学与工程数值算法
c#包括插值,微分方程的数值解法等-Science and Engineering numerical algorithm c#
- 2022-02-15 01:18:18下载
- 积分:1
-
TMS320VC5402DSP芯片通过源代码读写CF卡和CF的C.
通过TMS320VC5402DSP芯片读写CF卡的源程序,并实现CF卡与外部设备的通信-TMS320VC5402DSP chip through the source code to read and write CF cards and CF cards to achieve the communication with external equipment
- 2022-06-19 06:51:08下载
- 积分:1
-
Source code for measure temperature for Atmel Butterfly (ATMEGA 169) in ASM
Source code for measure temperature for Atmel Butterfly (ATMEGA 169) in ASM
- 2022-05-29 22:53:18下载
- 积分:1
-
s3c44b0初始化的引导程序,包括系统初始化,定义堆栈,进入主程序。...
s3c44b0初始化的引导程序,包括系统初始化,定义堆栈,进入主程序。-S3C44B0 guidance initialization procedures, including system initialization, the definition of the stack into the main program.
- 2022-03-13 10:51:01下载
- 积分:1