#include
#include
using namespace std;
class Person
{
public:
Person(char *nam,char s,int a)
{strcpy(name,nam);sex=s;age=a;}
protected:
char name[20];
char sex;
int age;
};
__________________
{
public:
Teacher(char *nam,char s,int a,char *t):Person(nam,s,a)
{strcpy(title,t); }
protected:
char title[10];
};
class Student:__________________
{
public:
Student(char *nam,char s,int a,float sco): Person(nam,s,a),score(sco){}
protected:
float score;
};
class Graduate:public Teacher,public Student
{
public:
Graduate(char *nam,char s,int a,char *t,float sco,float w):
Person(nam,s,a),Teacher(nam,s,a,t),Student(nam,s,a,sco),wage(w){}
__________________
{
cout |