已知有职工情况结构变量emp定义为:
struct Date {
int year;
int month;
int day;
};
struct Employee {
char name[20];
long code;
Date birth
}; Employee emp;
下列对emp的birth正确赋值方法是()
已知有职工情况结构变量emp定义为:
struct Date {
int year;
int month;
int day;
};
struct Employee {
char name[20];
long code;
Date birth
}; Employee emp;
下列对emp的birth正确赋值方法是()
year=1980; month=5; day=1;
birth.year=1980; birth.month=5; birth.day=1;
emp.year=1980; emp.month=5; emp.day=1;
emp.birth.year=1980; emp.birth.month=5; emp.birth.day=1;