-
编号为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 hardware description language used to design the traffic light procedures, and practical, it is economic.
- 2022-04-17 06:21:58下载
- 积分:1
-
MCS51 basic debugging procedures, including 8255, keyboards, LED, etc.
MCS51基本调试程序 包括8255、键盘、LED等-MCS51 basic debugging procedures, including 8255, keyboards, LED, etc.
- 2022-11-26 15:30:04下载
- 积分:1
-
DS18B20+1602LCD显示温度控制
DS18B20+1602LCD显示温度控制-DS18B20 1602LCD show that the temperature control
- 2022-04-13 10:25:17下载
- 积分:1
-
经典的迷宫算法,这是一个迷宫算法很好的例子,不懂的人可以下来...
经典的迷宫算法,这是一个迷宫算法很好的例子,不懂的人可以下来-classic maze algorithm, which is a maze algorithm good example, but not the people can look down
- 2022-12-25 12:30:04下载
- 积分:1
-
谐波合成法1
用matlab模拟的谐波合成法脉动风场,可用于风场的分析(The pulse wind field of harmonic synthesis simulated by MATLAB)
- 2018-05-24 10:27:59下载
- 积分:1
-
89S51 与数码管显示器以及键盘SW 对应引脚的联机为:
P0.0
89S51 与数码管显示器以及键盘SW 对应引脚的联机为:
P0.0-------------------------数码管显示器的a脚
P0.1-------------------------数码管显示器的b脚
P0.2-------------------------数码管显示器的c脚
P0.3-------------------------数码管显示器的d脚
P0.4-------------------------数码管显示器的e脚
P0.5-------------------------数码管显示器的f脚
P0.6-------------------------数码管显示器的g脚
P0.7-------------------------数码管显示器的dp脚
;
P2.2-------------------------数码管显示器1的驱动脚
P2.3-------------------------数码管显示器2的驱动脚
P2.4-------------------------数码管显示器3的驱动脚
P2.5-------------------------数码管显示器4的驱动脚
P2.6-------------------------数码管显示器5的驱动脚
P2.7-------------------------数码管显示器6的驱动脚
;
P2.2-------------------------键盘SW1
P2.3-------------------------键盘SW2
P2.4-------------------------键盘SW3
P2.5-------------------------键盘SW4
P2.6-------------------------键盘SW5
P2.7-------------------------键盘SW6-devised with the digital control display and keyboard SW corresponding pin online : P0.0------------------------- Digital Display of a foot P0 .1--------
- 2022-06-03 18:10:38下载
- 积分:1
-
这是一本汇编的书,是一本很好的汇编圣经…
This is a book of art of assemble.Itis a very good assemble bible.With this book, you can learn assemble language very well.-This is a book of art of a very assemble.Itis bible.With good assemble this book. you can learn assemble language very well.
- 2022-06-30 18:40:23下载
- 积分:1
-
visual basic visual basic vis ual basic vis ual basic visual basi c
visual basic
visual basic
visual basic-visual basic visual basic vis ual basic vis ual basic visual basi c
- 2022-06-29 11:54:29下载
- 积分:1
-
With 51 drives LED, keyboard, stepper motors to control the rise and fall flag
用51驱动LED,键盘,步进电机,使其来控制旗子的升降-With 51 drives LED, keyboard, stepper motors to control the rise and fall flag
- 2023-05-12 11:10:03下载
- 积分:1