#include <iostream>
//#include <string>
using namespace std;
struct Date
{
int month;
int day;
int year;
};
struct Student
{
int num;
char name[20+1];
char sex;
Date birthday;
float score;
}student1,Student2={1002,"wang li",'f',5,23,1992,89.5};
int main ()
{
cout<<"enter num,name,birthday(month,day,year) and score:";
cin>>student1.num>>student1.name>>student1.birthday.month
>>student1.birthday.day>>student1.birthday.year>>student1.score;//这里逐及调用
cout<<student1.num<<'\n'<<student1.name<<'\n'<<student1.birthday.month
<<'/'<<student1.birthday.day<<'/'<<student1.birthday.year<<'\n'<<student1.score;//逐级输出
cout<<endl;
return 0;
}