设计一个大学教师和学生管理程序,教师包
cout<<setw(10)<<zdls<<setw(10)<<yjff<<endl; }
private:
char *zdls;
char *yjff;
};
class postdoctor: public graduate,public teacher {
public:
void input()
{
graduate:input();
teacher:input();
return;
}
void print()
{
graduate:print();
teacher:print();
}
};
void main()
{
postdoctor aaa;
aaa.print();
graduate bbb;
bbb.print();
unstudent ccc;
ccc.print();
ccc.average();
}