结构体,错误。。。error C2275: 'student' : illegal use of this type as an exp
#include <STDIO.H>
/*
*
* 项目:有5个学生,每个学生的数据包括学号、姓名、三门课的成……
*
* 日期:2013-12-12
*
*
*
*/
struct student
{
char name;
int number;
int score1;
int score2;
int score3;
};
void main()
{ for (int i=1;i<6;i++)
{
printf("请输入第%个学生的姓名",i);
scanf("%c",&student[i].name);
}
}
结构体,错误。。。error C2275: 'student' : illegal use of this type as an exp
...全文


