#include<iostream>
#include<string>
using namespace std;
struct Student
{
string name;
int score;
};
struct Teacher
{
string name;
Student StudentArr[5];
};
void list(Teacher TeacherArr[], int len)
{
for (int i = 0; i < len; i++)
{
string num = "ABCDE";
TeacherArr[i].name = "Teacher_";
TeacherArr[i].name = TeacherArr[i].name + num[i];
cout << TeacherArr[i].name <<"老师带的学生有:"<< endl;
for (int j = 0; j < 5; j++)
{
string num2 = "ABCDE";
TeacherArr[i].StudentArr[j].name = "Student_";
TeacherArr[i].StudentArr[j].name = TeacherArr[i].StudentArr[j].name + num2[j];
cout << TeacherArr[i].StudentArr[j].name << endl;
}
cout << endl;
}
}
int main()
{
Teacher TeacherArr[3];
int len = sizeof(TeacherArr) / sizeof(TeacherArr[0]);
list(TeacherArr, len);
system("pause");
return 0;
}