结构体,错误。。。error C2275: 'student' : illegal use of this type as an exp

u013096814 u013096814 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
#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
...全文
评论 6
收藏 已收藏
分享
返回顶部
u013096814
C语言 70,039 成员 243,237 内容