-
编号为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
-
reloj digital con atmega16
reloj digital con atmega16
- 2022-04-08 21:11:01下载
- 积分:1
-
车站售票管理
车站车票销售管理-station ticket sales management
- 2023-01-19 05:30:03下载
- 积分:1
-
integer function for the two majors and the least common multiple source files
函数求两个整数的最大公约数和最小公倍数的源程序-integer function for the two majors and the least common multiple source files
- 2022-03-04 00:37:23下载
- 积分:1
-
BASM_for_Beginners.是DELPHI开发工具嵌入汇编语言,介绍了两种语言的接口,其使用语法...
BASM_for_Beginners.是DELPHI开发工具嵌入汇编语言,介绍了两种语言的接口,其使用语法-BASM_for_Beginners. Yes DELPHI embedded assembly language development tools, the introduction of the interface in two languages, the use of grammar
- 2022-11-17 22:35:03下载
- 积分:1
-
声
声-光报警程序
运行步骤:1.按下一次开关SW3,开始声-光报警,再按下一次则停止 重复上述操作*
2.按下"q"或者"Q",退出-this is a sound-light alarm program.
Steps:1. push switch3,starting alarm,push switch3 again,it will stop.
2. push Q then quit.
- 2022-08-15 01:26:41下载
- 积分:1
-
An LCD module on the test procedures CA12232G
一款关于 CA12232G 液晶模块的测试程序 -An LCD module on the test procedures CA12232G
- 2022-01-25 23:06:45下载
- 积分:1
-
8251A实现异步串行接口模式双
用8251a实现串行口异步方式双机通信,波特率1200bps,采用查询方式发送,中断方式接收。双方平时处在查询键盘、等待中断接收状态,并显示相关提示-8251a achieved using an asynchronous serial interface mode dual-machine communication, baud rate 1200bps, using queries sent, interrupt reception. Look at the two sides usually the keyboard, waiting for interrupt reception status, and display-related tips
- 2022-02-24 23:24:07下载
- 积分:1
-
该源码是利用Image制作小动画,使你的窗体看起来更加漂亮....增加观赏性...
该源码是利用Image制作小动画,使你的窗体看起来更加漂亮....增加观赏性-source is the use of Image Making small animation, make your windows look more beautiful .... increase spectator
- 2023-03-09 06:50:03下载
- 积分:1
-
钢琴模拟发声 汇编语言编写
钢琴模拟发声 汇编语言编写-Piano simulation audible language compilation
- 2022-10-13 07:20:03下载
- 积分:1