设计一个大学教师和学生管理程序,教师包
person:input();
cout<<"please zch:";
cin>>zch;
cout<<"please jysh:";
cin>>jysh;
return;
}
void print()
{
person:print();
cout<<setw(10)<<"zch"<<setw(10)<<"jysh"<<endl;
cout<<setw(10)<<zch<<setw(10)<<jysh<<endl;
}
private:
char *zch;
char *jysh;
};
class student:virtual public person
{
public:
void input()
{
person:input();
cout<<"please xb:";
cin>>xb;
cout<<"please bh:";
cin>>bh;
return;
}
void print()
{
student:print();
cout<<setw(10)<<"xb"<<setw(10)<<"bh"<<endl;
cout<<setw(10)<<xb<<setw(10)<<bh<<endl;
}
private:
char *xb;
char *bh;
};
class unstudent: public student
{
public:
void input()
搜索“diyifanwen.net”或“第一范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,第一范文网,提供最新教学研究设计一个大学教师和学生管理程序,教师包括编号、姓名、职称和教研室数据的输入输出(2)全文阅读和word下载服务。
相关推荐: