-
编号为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
-
学生成绩核算系统的设计与实现(25)
要求:(1)按班级按课程从文件中读入相应的平时成绩、期中考试成绩和期末考试成绩。
(2)三个成绩对总评成绩的百...
学生成绩核算系统的设计与实现(25)
要求:(1)按班级按课程从文件中读入相应的平时成绩、期中考试成绩和期末考试成绩。
(2)三个成绩对总评成绩的百分比被定义为常数,各占总成绩的30 、30 和40 。
(3)计算每位学生的总评成绩。
(4)计算该班级本课程的总平均成绩。
(5)计算处于优、良、中、及格、不及格的学生人数以及占总人数的百分比。其中100-90为优,89-80为良,79-70为中,69-60为及格,60分以下为不及格。
(6)按要求输出成绩在优、良、中、及格、不及格各区间的学生学号、成绩。-The student achievement calculation system s design with realizes (25) Request: (1) reads in the corresponding usual result, the midterm examination result and the terminal examinations result according to the class and grade according to the curriculum from the document. (2) three result are defined to the general appraisal result s percentage as the constant, occupies the overall result respectively 30 , 30 and 40 . (3) calculates each student s general appraisal result. (4) calculates this class and grade this curriculum the population mean result. (5) calculates the student population which is in superiorly, good, passes an examination, does not pass an examination as well as accounts for the total number of peop
- 2022-05-25 02:22:21下载
- 积分:1
-
应用Bresenham法画直线的算法,的汇编程序。
应用Bresenham法画直线的算法,的汇编程序。-application of Bresenham draw line
- 2022-03-23 17:25:09下载
- 积分:1
-
目标:手工选择视频图像上的待跟踪目标;利用块匹配的方法估计目标区域在下一帧图像中的位置;循环这个过程直到目标从图像帧中消失。
技术:avi视频流的帧读取;图...
目标:手工选择视频图像上的待跟踪目标;利用块匹配的方法估计目标区域在下一帧图像中的位置;循环这个过程直到目标从图像帧中消失。
技术:avi视频流的帧读取;图像帧存储格式的了解;RGB图像的灰度化;灰度图象的平滑滤波;块运动估计算法的实现;使用MFC显示图像帧;MFC上鼠标事件的使用。
-objectives : manually select video images on the question target tracking; Use block matching methods for estimating the target region in the next frame image position; Until this process cycle from the goal frame images disappear. Technology : avi video streaming reading frame; Image frame storage formats; RGB images of gray; Gray image smoothing filter; Block motion estimation algorithm implementation; MFC showed images frame; MFC on the use of the mouse.
- 2022-03-18 00:44:55下载
- 积分:1
-
基于ATMEGA16的车载电脑
car computer on ATmega16
- 2022-08-17 06:04:47下载
- 积分:1
-
这个代码是关于计算机考试的。使用VB编的。比较简单。
这个代码是关于计算机考试的。使用VB编的。比较简单。-code on the computer examination. VB series. Relatively simple.
- 2022-03-14 04:58:41下载
- 积分:1
-
自己写的一些MASM的小程序,可以实现在汇编底下的操作。
自己写的一些MASM的小程序,可以实现在汇编底下的操作。-himself wrote some of the small Multiple procedures can be achieved in the compilation of underground operation.
- 2022-08-19 23:26:45下载
- 积分:1
-
汇编判断正负的代码
汇编判断正负的代码-compilation of the code of plus or minus judgment
- 2022-03-11 01:57:56下载
- 积分:1
-
Micro
微型计算机与接口原理实验全部代码合集;
包含8259、8237、8251、8255等功能实现代码。-Micro-computer interface, all the code Collection principle experiment includes features such as 8259,8237,8251,8255 implementation code.
- 2022-02-11 16:51:35下载
- 积分:1
-
k分布的杂波的生成 运用于杂波模拟当中
k分布的杂波的生成 运用于杂波模拟当中-k model clutter mulitisim
- 2022-02-07 21:53:52下载
- 积分:1