阅读背景:

C ++将类成员传递给另一个类函数

来源:互联网 

I have several classes Staff, AcademicStaff and Department(seperated header files).I have a class member AcademicStaff *headOfDepartment into Department class.I need to create a head of department. I implemented the department then i need to set the head of the department.Also I decleared Deparment myDepartment in main.cpp. Here is the declaretion of academic staff function.In main function I get the inputs below from the user. ` AcademicStaff::AcademicStaff(int staffID, char *firstName, char *lastName, int telNo, char *address, char *email, int annualSalary, char *title,char *status) : Staff(staffID, firstName, lastName, telNo, address, email, annualSalary){I have several classes Staff, AcademicStaff and




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: