#include <iostream>

//���ã��ṹ���еij�Ա��������һ���ṹ��
//���磺ÿ����ʦ����һ��ѧԱ��һ����ʦ�Ľṹ���У���¼һ��ѧ���Ľṹ��

#if(0)

//����ѧ���Ľṹ��
struct Student
{
	std::string name;        //����
	int age;				 //����
	int score;               //����
};


//����һ����ʦ�Ľṹ��
struct Teacher
{
	int id;             //��ʦ���
	std::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 = 20;
	t.stu.score = 60;

	std::cout << "��ʦ������" << t.name << "��ʦ��ţ�" << t.id << "��ʦ���䣺" << t.age << "��ʦ������ѧ��������" << t.stu.name << "ѧ�������䣺" << t.stu.age << "ѧ���ijɼ���" << t.stu.score << std::endl;

	system("pause");

	return 0;

}
#endif