结构体的这里,错在哪?
# include <stdio.h>struct Student
{
int number;
char name[20];
double score;
};
int main(void)
{
Student stu1, stu2;
stu1={10010, "Jack", 49};//此处编译出错,为什么。。?
return 0;
}
# include <stdio.h> struct Student { int number; char name[20]; double score; }; int main(void) { struct Student stu1 = {10010, "Jack", 49}, stu2; return 0; }