-
编号为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
-
With 89C51, an external crystal oscillator, reset circuit, two digital tube, two...
用89C51,外接晶振,复位电路,二个数码管,二个按键,做一个电子秒表,具体要求为用按键起停电子表,可用按键设计倒计时时间(如10S,20S,60S),并启动倒计时功能,能用按键选择以上两功能之一-With 89C51, an external crystal oscillator, reset circuit, two digital tube, two buttons, making an electronic stopwatch, and specific requirements for the use button start-stop electronic watches, key design can be used countdown time (such as 10S, 20S, 60S), and start the countdown function, can be used for more than two buttons select one of the functions
- 2022-05-13 17:10:52下载
- 积分:1
-
基于ds18b20温度传感器的程序设计要求:第一…
基于DS18B20温度传感器的设计程序
要求为:第一,由DS18B20获得外部温度信息然后通过数码管显示,显示值为三位,两位整数,一位小数。第二,判断温度是否大于 50℃,若温度在50℃以上,显示红色发光二极管发光;若温度在50℃以下,显示绿色发光二极管发光。-DS18B20 temperature sensor based on the design of procedural requirements: first, by DS18B20 access to external temperature information through a digital display, showing a value of 3, two integer, a decimal. Second, to determine whether the temperature is greater than 50 ℃, if the temperature at 50 ℃, which indicates that the red light-emitting light-emitting diodes if the temperature below 50 ℃, showing a green light-emitting diode LED.
- 2022-10-25 17:30:03下载
- 积分:1
-
数控直流电源.步进0.1V可调节电压0到20V,输出电压通过数码管显示,并且有掉电存储功能...
数控直流电源.步进0.1V可调节电压0到20V,输出电压通过数码管显示,并且有掉电存储功能
- 2022-01-31 21:22:31下载
- 积分:1
-
用C++实现多项式处理
用C++实现多项式处理-Using C++ to deal with polynomials
- 2022-04-28 21:04:44下载
- 积分:1
-
基于汇编语言的学生管理系统
资源描述学生管理系统。由汇编语言编写的,有学生信息录入、排序、输出等功能。
- 2022-03-22 09:49:52下载
- 积分:1
-
(汇编源代码)编写一个简单的操作系统 By Vivek Mohan
(汇编源代码)编写一个简单的操作系统 By Vivek Mohan-(Compiled source code) to prepare a simple operating system By Vivek Mohan
- 2023-04-08 03:30:03下载
- 积分:1
-
A simple clock program, want to be helpful for beginners
一个简单的电子钟程序,希望对初学者有帮助-A simple clock program, want to be helpful for beginners
- 2022-01-23 11:08:33下载
- 积分:1
-
湿空气参数计算
根据已知湿空气的任意2个参数计算其他参数,如已知空气干湿球温度计算焓值之类,操作简单,适合制冷专业使用。运行结果都根据nist软件比较过,比较精确。
- 2022-12-03 19:25:03下载
- 积分:1
-
实现统计男女生个数 0代表男生 1代表女生 键盘输入 中断调用...
实现统计男女生个数 0代表男生 1代表女生 键盘输入 中断调用
-Interrupt program for boys and girls to achieve statistical number of 0 for boys and girls on behalf of a keyboard input
- 2022-12-26 01:25:03下载
- 积分:1