using namespace std;Рclass Person{ //Person类定义Р ……Р};Рclass Student:virtual public Person{ //Student类定义Рprivate:Р char school[20]; //学校字符串Рpublic:Р Student(char *n,int m,char * s); //构造函数Р char * getSchool(); //返回schoolР};Р ……Рclass Son:public Student,virtual public Person{ //Son类定义Рprivate:Р?Father * father; //父亲Рpublic:Р?Son(Father *p,char *n,int m,char * s);//构造函数Р?Father * getFather(); //返回FatherР};Р//Student类构造函数РStudent::Student(char *n,int m,char *s):Person(n,m){Р?strcpy(school,s);Р}Р//返回schoolРchar * Student::getSchool(){Р?return school;Р}Р ……Р//Son类构造函数РSon::Son(Father *p,char *n,int m,char * s):Person(n,m),Student(n,m,s){Р?father=p;Р}Р//主函数Рint main(){Р Father f1("李四",10000);Р?Son s1(&f1,"李小四",100,"大连理工大学");Р?s1.receive(f1.manage(&s1,1000));Р?f1.print();Р?s1.print();Р?return 0;Р}