doctor.h

来自「c++系统开发实例精粹内附的80例源代码 环境:windows2000,c++」· C头文件 代码 · 共 50 行

H
50
字号
// Doctor.h: interface for the CDoctor class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_DOCTOR_H__68EAC84D_E82A_40C9_B035_2ED670BD5CD9__INCLUDED_)
#define AFX_DOCTOR_H__68EAC84D_E82A_40C9_B035_2ED670BD5CD9__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CDoctor  
{
private:
	int Id;
	CString Name;
	CString Sex;
	int Age;
	int DeptId;
	CString Title;

public:
	CDoctor();
	virtual ~CDoctor();

	// 属性设置
	void SetId(int iId);
	int GetId();
	void SetName(CString cName);
	CString GetName();
	void SetSex(CString cSex);
	CString GetSex();
	void SetAge(int iAge);
	int GetAge();
	void SetDeptId(int iDId);
	int GetDeptId();
	void SetTitle(CString cTitle);
	CString GetTitle();
public:
	// 插入新的医生信息
	void sql_Insert();
	// 更改医生信息
	void sql_Update(CString cId);
	// 删除医生信息
	void sql_Delete(CString cId);

};

#endif // !defined(AFX_DOCTOR_H__68EAC84D_E82A_40C9_B035_2ED670BD5CD9__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?