-
编号为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
-
一个实现交通路口红黄绿灯分别轮流亮灭的汇编语言小程序
一个实现交通路口红黄绿灯分别轮流亮灭的汇编语言小程序
- 2022-10-02 06:05:03下载
- 积分:1
-
但是伏尔泰让他巍峨非道弘人问题为qefaFSADADQWD D
但是伏尔泰让他巍峨非道弘人问题为qefaFSADADQWD D-EFWEFEFGRGAGGWR WGAGWEGSG公司法人t
- 2022-02-06 17:07:18下载
- 积分:1
-
此系统是本人做毕业设计时候的老东西了,是汇编写的。可以在PROTEUS上仿真,实际效果和仿真效果一模一样,电梯的功能相信大家都很了解,我就不在这多讲了。但要说明...
此系统是本人做毕业设计时候的老东西了,是汇编写的。可以在PROTEUS上仿真,实际效果和仿真效果一模一样,电梯的功能相信大家都很了解,我就不在这多讲了。但要说明的一点是:我这个系统是仿真用的,有些东西不能和现实中的电梯相比,里面可能有某些方面考虑的不是很周到,希望有心的朋友提点意见,谢谢我的E-MAIL:qq317999920@163.com-This system is designed when I graduated to do the old things is a compilation of writing. Be able to PROTEUS on the simulation, the actual results and simulation of the effect of exactly the same as the functions of elevator think we all understand that I am not in this more than a speech. But the point is to explain: I used this system is the simulation of, some things can not be compared to the reality of the elevator, which may have to consider certain aspects of the not very thoughtful, I hope interested提点意见Friend, thank you my E-MAIL: qq317999920@163.com
- 2023-05-30 19:55:03下载
- 积分:1
-
这是一款自动皂液器的控制程序,可以选择工作次数,低电压检测...
这是一款自动皂液器的控制程序,可以选择工作次数,低电压检测-This automatic soap dispenser is a control program, you can choose to work the number of low-voltage detection
- 2022-07-10 01:46:46下载
- 积分:1
-
汇编子程序 大学课程设计需求者的最爱
汇编子程序 大学课程设计需求者的最爱-compilation subroutine university curriculum design needs a favorite
- 2023-04-11 00:55:03下载
- 积分:1
-
8031直接驱动LED的电路
以下是利用8031的I/O口直接驱动LED的电路原理图。电路通过8031的P0、P2口连接一片74LS373和一片27128构...
8031直接驱动LED的电路
以下是利用8031的I/O口直接驱动LED的电路原理图。电路通过8031的P0、P2口连接一片74LS373和一片27128构成外拓存储器,通过P1口直接连接LED,驱动显示器,通过P3.0、P3.1、P3.2、P3.3连接电平开关S1、S2、S3、S4作为逻辑输入控制。-8031 direct-drive LED circuit is the use of 8031 following the I/O port directly drive LED circuit schematic. Circuit through the 8031
- 2022-01-25 21:42:50下载
- 积分:1
-
Assembly language to achieve the interruption of the procedure, every 20 seconds...
汇编语言实现的中断程序,每隔20秒产生一次系统中断-Assembly language to achieve the interruption of the procedure, every 20 seconds have a system interruption
- 2022-03-20 15:54:01下载
- 积分:1
-
#include <iostream>
#include <stack>
#define MAX_SIZE...
非递归的快速排序算法-#include
#include
#define MAX_SIZE 11
using namespace std
typedef int elem
typedef std::stack Stack
int partition(elem*pData, int low, int high)
void swap(elem& a, elem& b)
void qsort(elem* pData, int low, int high)
int partition(elem*pData, int low, int high)
{
elem key = pData[low]
while(low < high)
{
while(low < high && pData[high] >= key)
high--
swap(pData[low], pData[high])
while(low < high && pData[low]
- 2022-05-08 16:41:43下载
- 积分:1
-
用来自动测算你在1分钟内的操作次数的即敲击键盘次数
用来自动测算你在1分钟内的操作次数的即敲击键盘次数-Is used to automatically measure your operation within 1 minute the number of keystrokes that the number of
- 2022-07-04 10:21:36下载
- 积分:1