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

2015-03-21 20:34
程序代码:# include <stdio.h>
struct Student {
int number;
char name[20];
double score;
};
int main(void) {
struct Student stu1 = {10010, "Jack", 49}, stu2;
return 0;
}

2015-03-21 20:34

2015-03-21 20:37
2015-05-22 09:42
2015-05-22 10:10

2015-05-24 03:03