登录
首页 » 汇编语言 » 编号为1,2… n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数的上限值m,从第一个人开始按顺时针方向自1开始顺序报数,...

编号为1,2… n的n个人按顺时针方向围坐一圈,每人持有一个密码(正整数)。一开始任选一个正整数作为报数的上限值m,从第一个人开始按顺时针方向自1开始顺序报数,...

于 2023-05-21 发布 文件大小:4.10 kB
0 44
下载积分: 2 下载次数: 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

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 辑器,
    行编辑器,-Line editor,
    2022-07-18 16:02:17下载
    积分:1
  • 好的东动
    好的东动-Good East actin
    2023-08-19 14:30:03下载
    积分:1
  • 我实验板带的实验程序,留给初学者看看吧,其他的我再整理一下,陆续上传吧...
    我实验板带的实验程序,留给初学者看看吧,其他的我再整理一下,陆续上传吧-I experiment with the experimental procedure sheet, leaving beginners take a look at it, other like me to organize a series of upload it
    2022-02-25 00:27:19下载
    积分:1
  • 8251A实现异步串行接口模式双
    用8251a实现串行口异步方式双机通信,波特率1200bps,采用查询方式发送,中断方式接收。双方平时处在查询键盘、等待中断接收状态,并显示相关提示-8251a achieved using an asynchronous serial interface mode dual-machine communication, baud rate 1200bps, using queries sent, interrupt reception. Look at the two sides usually the keyboard, waiting for interrupt reception status, and display-related tips
    2022-02-24 23:24:07下载
    积分:1
  • RFID读写程序
    RFID读写程序-RFID read and write procedures
    2022-03-16 18:58:40下载
    积分:1
  • This is a simple address book program, very suitable for novices to learn from.
    这是一个简单的地址簿程序,非常适合新手学习和借鉴。-This is a simple address book program, very suitable for novices to learn from.
    2022-03-13 07:41:06下载
    积分:1
  • STM32LCD初始化
    应用背景 本人原创STM32汇编实现LCD的显示,目前搜遍全球也没有STM32汇编实现LCD显示的代码。 编译器 ARM-NONE-EABI   ,是在LINUX下编译的。 代码很复杂不容易看懂,我用了很长时间才写出来,大概有1000行汇编代码,写了半个多月才写出来,真是不容易啊。 程序包括IO设置 时钟初始化,NVIC中断设置,定时器,温度传感器等,红外遥控, 然后在LCD上显示 关键技术 初始化代码 shizhong:     ldr r0, = 0x40021000     ldr r1, = 0x14D83     str r1, [r0] gsszbz:     ldr r2, [r0]     ldr r1, = 0x20000     tst r1, r2           @高速时钟标志位                bne rccchushihua     b gsszbz rccchushihua:     ldr r0, = 0x40022000     mov r1, # 0x00000032     str r1, [r0]       &n
    2022-03-12 04:17:41下载
    积分:1
  • Realize the storage and classification of the input points, and ultimately the f...
    实现对分数的输入存储及分类,并最终以计数的形式在dos中显示!-Realize the storage and classification of the input points, and ultimately the form of innumerable dos to display!
    2022-03-20 03:55:20下载
    积分:1
  • MCS51四字节除法运算程序,可计算出四字节的商和四字节的余数。...
    MCS51四字节除法运算程序,可计算出四字节的商和四字节的余数。-mcs51 division operation routine for tetra-byte ,may calculate both quotient of tetra-byte and remaining of tetra-byte
    2022-02-12 16:01:41下载
    积分:1
  • 一个还算可以的源码动画
    一个还算可以的汇编源码动画-still be a compilation of source animation
    2023-02-04 12:10:03下载
    积分:1
  • 696518资源总数
  • 104269会员总数
  • 31今日下载