c语言结构体数组,创建结构体,并编写程序,输出分数最低的学生的学号...答:{struct stu {int id;char name[21];int score;}st[100];int n,i,min=99999,mini;scanf("%d",&n);for(i=0;i<n;i++){scanf("%d %s %d",&st[i].id,st[i].name,&st[i].score);if(st[i].score<min){min=st[i].score;mini=i;} } printf("分数最低是: %d %s %d\n...
c语言结构体如何算平均值,总成绩,最高成绩,最低成绩17364917833?_百度知...答:定义结构体类型:codetypedef struct { int score; } Student;创建结构体数组并初始化成绩:codeStudent students[10]; // 假设有10个学生 int scores[] = {17, 36, 49, 17, 83, 3, 3, 3}; // 假设成绩数组为 {17, 36, 49, 17, 83, 3, 3, 3} for (int i = 0; i < 8; ...