#include <stdio.h>
#include <string.h>

// 定义日期结构体
struct Date {
    int year;
    int month;
    int day;
};

// 嵌套结构体的学生类型
struct Student {
    char name[20];
    struct Date birthday;  // 嵌套结构体成员
    float height;
};

int main(){
	// 使用示例
	struct Student s;
	s.birthday.year = 2027;
	s.birthday.month = 3;
	s.birthday.day = 15;
	printf("%d-%d-%d",s.birthday.year,s.birthday.month,s.birthday.day);
}

