#include <iostream>
#include <string.h>
using namespace std;
class Teacher
{
public://公用部分
Teacher(string nam, int a, string t)
{
//构造函数
name = nam;
age = a;
title = t;
}
void display()
{
cout << " name:" << name << endl;
cout << " age" << age << endl;
cout << " title:" << title << endl;
}
protected:
string name;
int age;
string title;
};
class Student
{
public:
Student(string nam, char s, float sco)
{
name1 = nam;
sex = s;
score = sco;
}
//构造函数
void displayl()
{