-
编号为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
-
黄金分割的4个子程序
黄金分割的4个子程序-the Golden Section 4 sub-procedures
- 2023-04-09 01:40:03下载
- 积分:1
-
用汇编语言实现任意两个十进制数的加法
用汇编语言实现任意两个十进制数的加法,附有详细解析。应用了跳转指令,模拟进位机制实现带进位的两数相加。
- 2022-12-15 18:40:08下载
- 积分:1
-
c语言绘制鸭子 辅助设计 更换坐标变换图形
c语言绘制鸭子 辅助设计 更换坐标变换图形-c language mapping Ducks aided design graphics replacement coordinate transformation
- 2023-03-09 00:15:03下载
- 积分:1
-
dspic6012A读写24LC02B的例程(用c语言编写)
dspic6012A读写24LC02B的例程(用c语言编写)-24LC02B of routines to read and write dspic6012A (using c language)
- 2023-05-27 22:30:04下载
- 积分:1
-
汇编逻辑尺的应用!
汇编逻辑尺的应用!-compilation of the application logic feet!
- 2022-02-05 15:12:51下载
- 积分:1
-
最新的词法分析器啊,最新版的,里面包括了识别c的关键字的。...
最新的词法分析器啊,最新版的,里面包括了识别c的关键字的。-Ah latest lexical analyzer, the latest version, which includes the identification of keywords c.
- 2022-05-18 01:02:36下载
- 积分:1
-
TLV2544/48 Interface routine
TLV2544/48 Interface routine
- 2022-03-29 01:04:28下载
- 积分:1
-
汇编多媒体教案ppt格式,不错哦!
汇编多媒体教案ppt格式,不错哦!-compilation of multimedia lesson plans ppt format, it is true!
- 2022-01-25 15:42:15下载
- 积分:1
-
门禁中韦根信号发送,汇编语言编写,51单片机可用.
门禁中韦根信号发送,汇编语言编写,51单片机可用.-Wiegand Access Control in the signal sent, written in assembly language, 51 microcontroller is available.
- 2022-07-24 14:50:50下载
- 积分:1