Help~ 错误: 在非结构或联合中请求成员
stud.c: 在函数‘main’中:
stud.c:18: 错误: 在非结构或联合中请求成员‘mun’
stud.c:18: 错误: 在非结构或联合中请求成员‘name’
stud.c:18: 错误: 在非结构或联合中请求成员‘course’
stud.c:18: 错误: 在非结构或联合中请求成员‘course’
stud.c:18: 错误: 在非结构或联合中请求成员‘course’
#include <stdio.h>
int main()
{
struct person
{
int mun;
char name[30];
union data
{
float eng;
float math;
float arts;
}course;
}stu[10];
int i;
printf("请输入10个学生数据!\n");
for(i=0;i<10;i++)
scanf("%d%s%f%f%f",&stu.mun,stu.name,&stu.course.eng,&stu.course.math,&stu.course.arts);
}