CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 源码下载 其它 汇编语言

文件名称:sortstudent

  • 所属分类:
  • 标签属性:
  • 上传时间:
    2012-11-16
  • 文件大小:
    1.4kb
  • 已下载:
    0次
  • 提 供 者:
  • 相关连接:
  • 下载说明:
    别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容来自于网络,使用问题请自行百度

本程序由三部分组成:输入学生的信息(姓名和成绩);按成绩高低对学生进行排序;输出学生信息。

在输入学生的信息部分,在结构体中输入相应学生信息,输入姓名时,若输入‘!’则终止输入,转到sort排序函数;若输入超过最大数500,则也终止程序,转到sort排序函数,否则,执行循环,继续输入学生信息。

在sort排序函数部分,用到两层循环对学生进行排序。首先,拿第一个学生(i=0),用它和后面的学生进行成绩比较,如果前面的学生的分数小于后面的学生,则让两个学生在内存中的信息通过exch进行交换,否则在后面的学生中继续找比他分数大的,直到找完最后一个学生;inc i,又拿第二个学生(i=1),用他的成绩与他后面的同学的成绩进行比较,重复以上过程,即可把所有学生,按成绩由高到低排序。其中,学生的分数,为assiis码存储,并没有必要转换成数制,可直接进行串比较,即可判断大小

在mout输出函数部分,为了让姓名和分数一起一次输出,要处理掉姓名和分数之间的回车符(0DH)和$ (24H),输出一个学生信息后,让地址加19,指向下一个学生的地址,直到输出全部学生信息。

-This program consists of three parts: input student information (name and achievements) according to the level of the students to sort the results out student information.



Student information in the input part of the structure of students enter the appropriate information, enter a name, if the type ! Is to halt the importation, go to the sort order function if the input exceeds the maximum number of 500, they are also terminate the program, go to the sorting function, sort, otherwise the implementation of the cycle, to continue to enter the student information.



Sorting function in the sort part of the cycle for students to use a two-tier sort. First of all, take the first student (i = 0), use it, and behind the academic performance of students, if the students in front of students who score less than the back, letting the two students in memory of the information through exch exchange, otherwise In the following students to continue to look for than he scores big, until you
相关搜索: sortstudent

(系统自动生成,下载前可以参看下载内容)

下载文件列表

sortstudent.asm

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 搜珍网是交换下载平台,只提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。更多...
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或换浏览器;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com