C语言~输入5个学生的学号,成绩,按成绩排序(升序),查找90分以上的

日期:2019-05-18 15:30:33 人气:1

C语言~输入5个学生的学号,成绩,按成绩排序(升序),查找90分以上的

代码: #include<stdio.h> struct student { int num,score[3],age; char name[20]; float aver; }stu[1000]; main() { int i,j,n; struct student temp; /*注意:变量temp的类型与数组stu的元素类型为相同结构体的时候,才可交换两个结构体数组元素,所以此处需要定义temp的类型*/ printf("请输入学生人数:\n"
    A+
热门评论