nteacher.h
来自「教职员工及非教职员工数据库管理系统」· C头文件 代码 · 共 40 行
H
40 行
// NTeacher.h: interface for the CNTeacher class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_NTEACHER_H__2EAB5BE4_8080_45B5_A1B5_22AE4D0920B2__INCLUDED_)
#define AFX_NTEACHER_H__2EAB5BE4_8080_45B5_A1B5_22AE4D0920B2__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Person.h"
//非教职工类:共有继承了人员信息类CPerson
class CNTeacher : public CPerson
{
private:
string workType;//工种
int workAge;//工龄
public:
int GetWorkAge();//获得工龄信息
string GetWorkType();//获得工种信息
void SetWorkAge(int wa);//设置工龄信息
void SetWorkType(string wt);//设置工种信息
CNTeacher(string n="", int a=0, string s="", string wt="", int wa=0):CPerson(n, a, s)//非教职工类的构造函数
{
workType = wt;
workAge = wa;
}
virtual ~CNTeacher();//非教职工类的析构函数
// CPerson* next;
};
#endif // !defined(AFX_NTEACHER_H__2EAB5BE4_8080_45B5_A1B5_22AE4D0920B2__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?