c语言相关问题,我写个程序如下,可是系统说错误是:C:\Program Files\Microsoft Visual Studio\MyProjects\11\
#include <iostream>using namespace std;
struct Date
{int month;
int day;
int year;
};
struct Student
{int num;
char name [20];
char sex;
Date birthday;
float score;
}student 1,student 2={10002,"wang li",'f',5,23,1992,89.5};
int main( )
{student1=student2;
cout<<student1.num<<endl;
cout<<student1.name<<endl;
cout<<student1.sex<<endl;
cout<<student1.birthday.month<<'/'<<student.birthday.day<<'/'<<student1.birthdayyear<<endl;
cout<<student1.score<<endl;
return 0;
}