-
编号为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
-
Compilation of statistics to achieve a string of alphanumeric characters which h...
汇编实现统计一个串中 数字 字母 其他字符个有几个-Compilation of statistics to achieve a string of alphanumeric characters which have a number of other
- 2023-07-23 15:50:03下载
- 积分:1
-
assembly language
汇编语言超浓缩教程-assembly language-enrichment Guide
- 2022-02-04 05:01:00下载
- 积分:1
-
汇编语言与设计 我们可以这样的做一些有用的汇编程序
汇编语言与设计 我们可以这样的做一些有用的汇编程序-assembly language and design we could do some useful compilation proce
- 2022-01-22 02:53:18下载
- 积分:1
-
This is a countdown device, a little flaw, the need to improve, because I am a b...
这是一个倒计时器,有点缺陷,需要改进,因为我是一个初学者-This is a countdown device, a little flaw, the need to improve, because I am a beginner
- 2022-09-26 21:30:03下载
- 积分:1
-
遗传算法VC程序:用于搜索极值,极大值极小值均可
遗传算法VC程序:用于搜索极值,极大值极小值均可-Genetic Algorithm VC program: used to search for extremal, maximum value of the minimum can be
- 2023-02-20 17:30:03下载
- 积分:1
-
x86保护模式编程教程,简明易懂,进入低层编程的门槛,很不错的资料哦...
x86保护模式编程教程,简明易懂,进入低层编程的门槛,很不错的资料哦-x86 protected mode programming guides, simple, low-level programming to enter the threshold of very good information!
- 2022-02-16 03:32:28下载
- 积分:1
-
一个简单的execl(linux)下的服务器代码,有什么问题,请多指教...
一个简单的execl(linux)下的服务器代码,有什么问题,请多指教-a simple execl (linux) server code, any problem, please enlighten
- 2023-06-22 18:05:04下载
- 积分:1
-
最新的词法分析器啊,最新版的,里面包括了识别c的关键字的。...
最新的词法分析器啊,最新版的,里面包括了识别c的关键字的。-Ah latest lexical analyzer, the latest version, which includes the identification of keywords c.
- 2022-05-18 01:02:36下载
- 积分: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