#include<iostream>
using namespace std;
#include<ctime>
#include<string>
struct student {
string name;
int age;
int score;
};//结构体顺序不能相反
struct teacher {
int id;
string name;
int age;
struct student stu;
};
int main() {
teacher t;
t.id = 10000;
t.name = "老王";
t.age = 50;
t.stu.name = "小王";
t.stu.age = 10;
t.stu.score = 60;
cout << t.name << t.id << t.age << t.stu.name << t.stu.age << t.stu.score << endl;
system("pause");
return 0;
}