-
编号为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
-
北京邮电大学 全套汇编与接口课件(ppt版,共十章) 很完整也很实用,希望对大家有帮助...
北京邮电大学 全套汇编与接口课件(ppt版,共十章) 很完整也很实用,希望对大家有帮助 -Complete compilation of Beijing University of Posts and interface Courseware (ppt version, a total of 10 chapters) is very complete and very useful, want to help everyone
- 2022-08-07 09:31:15下载
- 积分:1
-
一个不错的堆排序,用汇编语言实现的
一个不错的堆排序,用汇编语言实现的-a good heap sort, with the compilation of language
- 2022-02-03 11:24:59下载
- 积分:1
-
C语言多种求最优的程序源代码,方便实用
对编程有很大帮助...
C语言多种求最优的程序源代码,方便实用
对编程有很大帮助-C language for a variety of optimal source code, useful for programming will be of great help
- 2022-06-28 12:27:09下载
- 积分:1
-
Asang Toluca people understand Sensen Toluca Asensen ah
阿桑托卢卡人了解阿森托卢卡阿森四托卢卡阿桑托卢卡阿桑托卢卡,托卢卡,托卢卡阿桑托卢卡
- 2023-01-11 10:15:04下载
- 积分:1
-
一段用汇编语言完成的程序 非常好用 用于显示器的实现
一段用汇编语言完成的程序 非常好用 用于显示器的实现-section complete with assembly language is very useful procedure for the realization of displays
- 2023-01-29 10:15:03下载
- 积分:1
-
";TMS320C240原理和C语言应用控制附件";S.
《TMS320C240原理与C语言控制应用实习》源代码-"TMS320C240 principle and C language application control attachment" source code
- 2022-07-09 22:47:37下载
- 积分:1
-
加密Altera的FPGA的方法
加密Altera的FPGA的方法
加密Altera的FPGA的方法
加密Altera的FPGA的方法-Altera FPGA encryption method Altera FPGA encryption methods
- 2022-09-04 15:55:03下载
- 积分:1
-
tasm 环境下的汇编程序
tasm 环境下的汇编程序-Tasm environment compilation process
- 2022-12-04 00:20:03下载
- 积分:1
-
此模板是纯DOS程序代码,需要MASM5.0,编译时请使用"编译到 DOS"方式...
此模板是纯DOS程序代码,需要MASM5.0,编译时请使用"编译到 DOS"方式
-This template is a pure DOS code, need MASM5.0, compile-time, please use the " compiledDOS quot way
- 2023-07-29 00:50:03下载
- 积分:1