• 有N个学生,每个学生的信息包括学号、性别、姓名、四门课的成绩,从键盘上输入N个学生的信息,要求输出总平均成绩最高的学生信息,包括学号、性别、姓名和平均成绩。

    正确答案:#include"stdio.h" #define N 3 struct student { long stu_num; char sex; char name; int score; float average; }; main { intI,j,index; float sum,max; struct student stuarr; for(I=0;I{ printf("please input %d student information:\n",I+1); scanf
  • 2021年07月15日 21时35分来自  问答库 >> 计算机类
  • 评论 0
  • 手机玩微博

    手机版 手机端
    Powered by 日新微博 © 2018 - 2020 日新网