-
编号为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
-
随着多样化需求的增加及作用距离的延伸,基带窄脉冲方式的超宽带技术又在原有的数据业务的基础上的到了提伸,IEEE802.15.4a就是一种采用基带窄脉冲方式的超宽...
随着多样化需求的增加及作用距离的延伸,基带窄脉冲方式的超宽带技术又在原有的数据业务的基础上的到了提伸,IEEE802.15.4a就是一种采用基带窄脉冲方式的超宽带综合业务的标准-With the diversification and the role of increased demand from the extension of a narrow base-band pulse of ultra-wideband technology in the existing data services based on the mentioned stretch, IEEE802.15.4a is a base-band using a narrow pulse of Ultra-wideband integrated services standards
- 2022-06-12 20:38:12下载
- 积分:1
-
工作环境为:
按键采用中断方式
IIC总线接通
P0口上拉
LS244使能
接通数码管
K0:确定键,用来确定调节好的时钟或者闹钟...
工作环境为:
按键采用中断方式
IIC总线接通
P0口上拉
LS244使能
接通数码管
K0:确定键,用来确定调节好的时钟或者闹钟
K1:时钟调节键,用来选择时钟调节的位置
K2:调节键,用来使选中的数字发生改变
K3:闹钟调节键,用来选择闹钟调节的位置
接通电源后可能需要按一次K4(复位键),时钟才会开始走动,此时是一个默认的时间,使用K1来选择需要更改的数字的位置,然后按K2调节,所有的数字都调节好后按K0确定,则时钟会按照新调节好的数据开始走动。
闹钟默认为晨7点,可以通过K3+K2+K0来调节,调节方法同时钟调节。
这是一个比较完善的时钟程序,当然还可以增加许多功能,例如增加闹钟的时间段,或者使到时间后某个输出有效等等,请大家多琢磨,希望看到各位写出的程序比我的这个好。
这个试验主要是学习PCF8563的使用,但也综合了IIC总线读写、中断方式按键处理、数码管数字显示、数码管动态刷新以及内部软件定时等方面,因此是一个综合性比较强的试验。
- 2022-06-29 23:08:31下载
- 积分:1
-
PIC16F877A扫描显示三个数码管,供学习的朋友参考。
PIC16F877A扫描显示三个数码管,供学习的朋友参考。-PIC16F877A scan shows three digits for the study and a friend for reference.
- 2023-08-20 11:55:04下载
- 积分:1
-
microchip单片机pic18f202的一段源代码,适合做电源控制
microchip单片机pic18f202的一段源代码,适合做电源控制-microchip microcontroller pic18f202 section of the source code, suitable for power control
- 2022-03-21 12:53:07下载
- 积分:1
-
chaoshi guan li xitong
chaoshi guan li xitong
- 2023-03-18 19:05:03下载
- 积分:1
-
这个C++编程语言,我想这个计划会帮助你很多,谢谢你!
this C++ programming language,i wish this program will help u a lot,thank you!
- 2022-03-23 18:58:13下载
- 积分:1
-
本教程主要讲述计算机指令运行机制及汇编语言的相关知识,并用详实的例子来讲解如何使用O汇编语言来编写程序。汇编语言是计算机低级语言,它直接对应的是计算机机器指令,...
本教程主要讲述计算机指令运行机制及汇编语言的相关知识,并用详实的例子来讲解如何使用O汇编语言来编写程序。汇编语言是计算机低级语言,它直接对应的是计算机机器指令,据有执行高效的特点,但由于它的底层性,指令浩繁复杂,如果你熟悉如MASM、FASM或者NASM等其它的汇编语言,那么你将能够很容易地学会使用O语言,它的内部机制与其它汇编语言是一致的;如果你没有接触过汇编语言,那么本教程将为你打开计算机语言的大门,深入细致地解剖聪明的计算机大脑的思考轨迹。如果你使用过C或者其它的计算机语言将对学习O语言有一定的帮助。-the handbook focuses on the operation of computer instructions and mechanisms related to the compilation of language knowledge, and the use of detailed examples to explain how to use the O Series language programming. Language is a compilation of computer low level language, which directly correspond to the computer machinery orders, according to the efficient implementation of the characteristics But since they are bottom, voluminous complex instructions, if you are familiar with such as Shape, FASM or Assemble the compilation and other languages, then you will be able to easily learn how to use O language, The internal mechanism and the other assembly language is unanimous; If you had any contact with assembly language. Then you ha
- 2022-03-28 20:33:02下载
- 积分:1
-
汇编操作蜂鸣器演奏音乐的例程,使用MASM6.15编译通过
汇编操作蜂鸣器演奏音乐的例程,使用MASM6.15编译通过-operation of buzzer
- 2022-02-15 05:23:26下载
- 积分:1
-
一个背单词源码,用masm写成,作者zhasm
只是觉得其构思不错,版权归原作者所有...
一个背单词源码,用masm写成,作者zhasm
只是觉得其构思不错,版权归原作者所有-a source word back with masm languages, the author zhasm just think that the idea is true, All the property of authorship
- 2022-08-17 15:52:15下载
- 积分:1