-
编号为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
-
Beginners program,how to control a robo using PC in Basic Language
Beginners program,how to control a robo using PC in Basic Language
- 2022-01-25 23:38:03下载
- 积分:1
-
此程序的功能是把红外遥控器的地址码(16位)和控制码及反码显示出来,每按一次遥控器都能显示这些数据(用8只数码管16进制显示).
此程序的功能是把红外遥控器的地址码(16位)和控制码及反码显示出来,每按一次遥控器都能显示这些数据(用8只数码管16进制显示).-The function of this program is to address the infrared remote control code (16) and the control code and anti-code displayed every time the remote control can display these data (8 by 16-band digital tube display).
- 2022-08-18 17:14:45下载
- 积分:1
-
控制道路指示灯的汇编代码
控制道路指示灯的汇编代码-road indicator compiled code
- 2022-02-10 14:15:26下载
- 积分:1
-
intel 汇编指令详解,是学习汇编语言的必看资料
intel 汇编指令详解,是学习汇编语言的必看资料-Detailed instructions intel compilation is a must-see assembly language learning information
- 2022-02-01 09:24:07下载
- 积分:1
-
多位的加减运算,允许有负数.
多位的加减运算,允许有负数.-number of addition and subtraction operations and allow a negative.
- 2023-09-08 03:40:02下载
- 积分:1
-
FSK调制的VHDL源代码和仿真指导解调…
FSK调制与解调的vhdl源代码,是word文档打开-FSK modulation and demodulation of VHDL source code and simulation of the guide is the word document open.
- 2022-06-28 13:13:53下载
- 积分:1
-
CC2420+pic,很好用的程序啊,适合初学者,绝对没有问题的,快来下载啊...
CC2420+pic,很好用的程序啊,适合初学者,绝对没有问题的,快来下载啊 -CC2420 and Its Application pic, the procedure is useful ah suitable for beginners, there is absolutely no problem, ah Come Download
- 2022-03-20 14:32:55下载
- 积分:1
-
利用8255可编程并行口做一个扫描键盘实验,把按键输入的键码,显示在由8279控制的七段数码管上。8255PA口做键盘输入线,PB口作扫描线
利用8255可编程并行口做一个扫描键盘实验,把按键输入的键码,显示在由8279控制的七段数码管上。8255PA口做键盘输入线,PB口作扫描线-8255 programmable parallel port using a scanning keyboard to do the experiment, the button input keys code, displayed in the control of the team respectively by 8279 digital tube. 8255PA I make the keyboard input line, PB mouth for scan line
- 2022-09-21 20:30:02下载
- 积分:1
-
一个具有电子时钟程序的闹钟。使用汇编语言…
带一闹钟的电子时钟程序。用汇编语言实现的带一个闹钟功能的程序。是针对at89s51单片机设计的。数码管显示是用的6位。-One alarm clock with an electronic clock procedures. Using assembly language to achieve with an alarm clock function procedures. AT89S51 for single-chip design. Digital tube display is used 6.
- 2022-08-13 23:50:45下载
- 积分:1