
1个回答
展开全部
#include<stdio.h>
#define N 3
struct students
{
int number;
char name[20];
int score[3];
}stu[N];
int main()
{
int i,j;
printf("Please input the information......\n");
printf("NO. \tName \tMaths \tChinese English\n");
for(i = 0; i < N; i++)
{
scanf("%d %s",&stu[i].number,stu[i].name);
for(j = 0; j < 3; j++)
scanf("%d",&stu[i].score[j]);
}
return 0;
}
如有什么问题,欢迎一起探讨。
本回答被提问者采纳
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询