-
编号为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
-
内部有说明,多为嵌入式系统程序,侧重于实用的系统,很有参考价值...
内部有说明,多为嵌入式系统程序,侧重于实用的系统,很有参考价值-internal notes, and many of the embedded system, with a focus on practical, useful reference value
- 2023-04-07 05:25:03下载
- 积分:1
-
ARM_Embedded_C_Programming_Language.rar look, ARM C programming teaching materia...
ARM_Embedded_C_Programming_Language.rar看一下,ARM C编写程序的教材。-ARM_Embedded_C_Programming_Language.rar look, ARM C programming teaching materials.
- 2022-02-22 06:28:01下载
- 积分:1
-
多功能小车仿真。L298驱动直流电机,有液晶LCD显示方向,速度。...
多功能小车仿真。L298驱动直流电机,有液晶LCD显示方向,速度。-Multi-function car simulation. L298-driven DC motor,there is the direction of liquid crystal LCD display,speed.
- 2022-02-04 14:43:33下载
- 积分:1
-
XC2s200 Xilinx公司的SpartanII FPGA 全套图纸,很好!
XC2s200 Xilinx公司的SpartanII FPGA 全套图纸,很好!-XC2s200 Xilinx
- 2022-03-12 02:23:26下载
- 积分:1
-
根据8051单片机的特点及交通灯在实际控制中的特点,本文提出一种用单片机自动控制交通灯及时间显示的方法....
根据8051单片机的特点及交通灯在实际控制中的特点,本文提出一种用单片机自动控制交通灯及时间显示的方法.-According to the characteristics of 8051 and the traffic lights in the actual control of the characteristics of this paper, a single-chip automatic control with traffic lights and the time display method.
- 2023-03-23 05:30:03下载
- 积分:1
-
51 key matrix scanning procedure, the procedure can be used for multi
51矩阵按键扫描程序,可用于多按键程序检测用-51 key matrix scanning procedure, the procedure can be used for multi-button detection
- 2022-08-22 11:38:19下载
- 积分:1
-
The driver of C8051 rtl, it will bring you very big benfit if you will read it,...
C8051 rtl的汇编驱动程序,如果能看懂会给你带来很大的好处,学习的好资料.-The driver of C8051 rtl, it will bring you very big benfit if you will read it, it is very nice.
- 2023-01-16 06:35:04下载
- 积分:1
-
Gauss投影计算方法以及界面美化,个人自己做的,比较菜
Gauss投影计算方法以及界面美化,个人自己做的,比较菜-Gauss projection method and interface landscaping, individuals themselves, more vegetables
- 2023-04-22 12:00:03下载
- 积分:1
-
报警设定时钟
该项目是数字时钟的使用RTC DS12C887和8051微控制器(AT89C51)与时间设定,我们可以将它设置闹铃唯一不同的改进版本。它有助于理解在RTC的12C887设定报警的概念。该方案采用两个外部中断0和1,分别设定时间和闹铃。用于设置时间销P3中的微控制器8051的^2由低,这是外部中断0。对于报警设置微控制器的引脚P3.3由低是外部中断1。
- 2022-02-20 11:32:15下载
- 积分:1