输入10个学生的学号和3门课的成绩,统计并输出3门课程总分最高的学生学号和总分

[复制链接]
查看11 | 回复2 | 2012-11-18 19:19:18 | 显示全部楼层 |阅读模式
#include#define N 3/*输入10个学生的学号和三门课成绩, *统计并输出总分最高的学号和总分。**/typedef struct{
char id[8];
int score1;
int score2;
int score3;
int sum;
}Student;Student students[N];Student input(){
Student student;
printf("\t学号:");scanf("%s",&stu...
回复

使用道具 举报

千问 | 2012-11-18 19:19:18 | 显示全部楼层
#include int main(void){int i,j,k,m=0,a[10],b[3],c=0;for(i=0;i<10;i++){printf("第%d个学生的学号:",i+1);scanf("%d",&a);for(j=0;j<3;j++){...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行