c语言,求大佬帮忙写个用if判断是否输入的为hello 如果是 输出 对 不是输出 错,求帮忙啊

如题所述

第1个回答  2019-03-23
include
int main()
{int n,i,j,s=0;
 struct stud{
char id[10];
char name[10];
int score; 
 }stu[10];
 scanf("%d",&n);
 for(i=j=0;istu[j].score)j=i;
   }
 printf("The average score=%.2f\n",(float)s/n);
 printf("The student who has the highest score is:%s %s %d",stu[j].id,stu[j].name,stu[j].score);
 return 0;
追问

有没有简单的

本回答被网友采纳
相似回答