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

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

于 2023-05-21 发布 文件大小:4.10 kB
0 116
下载积分: 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 个回复

  • 整型浮点数加法运算
    通过MIPS的汇编语言实现整型浮点数的加法运算。其中可以设计的指令有mfc1和mtc1。如输入1,1,则输出2.0,以此实现运算。
    2023-05-29 00:20:03下载
    积分:1
  • 这是一个关于89c51,max7219,93c46组成的计数器程序,译能同过,但可能程序本身有些问题,需要修改。...
    这是一个关于89c51,max7219,93c46组成的计数器程序,编译能同过,但可能程序本身有些问题,需要修改。-This is a study on 89c51, max7219, 93c46 counter composed of procedures, the compiler can be the same, but the process itself may be some problems, needs to be revised.
    2022-08-14 07:31:27下载
    积分:1
  • dsp good under development seeks single sideband modulation procedures
    dsp c32下开发的waver单边带调制程序-dsp good under development seeks single sideband modulation procedures
    2023-05-16 18:10:03下载
    积分:1
  • write flash code
    write flash code
    2022-12-21 12:35:04下载
    积分:1
  • 1、1+1/2+1/3+……+1/n 2、键盘输入任何数字,求其阶乘 3、数组输入和输出 4、求数组的max和min...
    1、1+1/2+1/3+……+1/n 2、键盘输入任何数字,求其阶乘 3、数组输入和输出 4、求数组的max和min -1,1+1/2+1/3+ ... ...+1/n 2, keyboard input any number, find its factorial 3, an array of input and output 4, seeking an array of max and min
    2022-03-03 22:24:03下载
    积分:1
  • LANDSCAPE SOURCE There is a makefile, two C sources and one ASM file he...
    LANDSCAPE SOURCE There is a makefile, two C sources and one ASM file here. As it should always be, the ASM stuff contains the innermost pieces of code for the effect, and also some other stuff related to low-level keyboard input.-LANDSCAPE SOURCE There is a makefile, two C sources and one ASM file here. As it should always be, the ASM stuff contains the innermost pieces of code for the effect, and also some other stuff related to low-level keyboard input.
    2022-10-23 22:55:03下载
    积分:1
  • 一个的学籍管理程序
    一个汇编的学籍管理程序-A compilation of the school management procedures
    2022-05-17 11:46:18下载
    积分:1
  • 本书以X86系列微机为背景,从简单的Hello程序开始,系统而详细地阐述了X86微机程的各种基础知识和程技巧,内容涉及到数据表示、存储器管理、各种数...
    本书以X86系列微机为背景,从简单的Hello程序开始,系统而详细地阐述了X86微机汇编语言编程的各种基础知识和编程技巧,内容涉及到数据表示、存储器管理、各种数据类型、过程、与汇编语言相关的体系结构、控制结构、文件、宏指令、位处理指令、字符串指令、MMX指令、类和对象,以及混合语言编程等,尤其是在高级汇编语言(HLA)方面,该书给予了细致深入的讲解。对于有意学习X86汇编语言编程的程序员来说,这是一本难得的好书。 本书的作者Randall Hyde在大学中教授汇编语言十多年,并且开发了好几个商用软件,具有丰富的汇编语言开发经验。该书的英文电子版受到了成千上万的网站和高级程序员的高度评价,已经成为了高级汇编语言编程方面的一本经典之作。虽然该书的出版时间不长,但在Amazon上为该书作出评价的人很多,而且几乎所有的人都给予5星的评价,可见其内容之好。笔者相信,随着时间的推移,它在程序员中的影响回越来越大-this book X86 computer as a background, from a simple Hello proceedings began, and the system described in detail in the X86 PC assembly language programming in basic knowledge and programming skills, which relates to the data, memory management, data types, processes, and assembly language related to the body the grade structure, the control structure, document, macros, handle the orders, string instructions MMX instructions, classes and objects, as well as mixed-language programming, particularly at the senior assembly language (HLA), the book to give a detailed in-depth explanations.
    2022-09-18 08:30:03下载
    积分:1
  • Has many collection of case studies, case 26 watch display, case
    拥有众多汇编案例,案例26钟表显示,案例4加减乘除四则运算 ,案例9音乐演奏, 案例23学生成绩管理-Has many collection of case studies, case 26 watch display, case-4 addition and subtraction multiplication and division four operations, case 9, music, Case management of 23 student achievement
    2022-07-11 04:22:10下载
    积分:1
  • 调制解调器卡驱动OSS DSP的MP3 USB FAT12这是我去年做的博士研究。
    modem卡驱动程序源码 DSP+Mp3+USB+FAT12 这是我去年做的有关DSP+Mp3+USB+FAT12的所有源程序。 dsp用的是ti5416。 祝大家好运!-modem card driver for OSS DSP Mp3 USB FAT12 This is my last year to do the D. SP Mp3 USB FAT12 all source files. Dsp used the ti5416. Luck!
    2022-02-26 01:46:35下载
    积分:1
  • 696518资源总数
  • 106222会员总数
  • 14今日下载