stuff.h

来自「《Visual C++视频技术方案宝典》配套光盘」· C头文件 代码 · 共 74 行

H
74
字号
// Stuff.h: interface for the CStuff class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_STUFF_H__91AC661E_6C50_4912_9642_AF73495D4773__INCLUDED_)
#define AFX_STUFF_H__91AC661E_6C50_4912_9642_AF73495D4773__INCLUDED_

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

//员工信息实体
class CStuff  
{
public:
	CStuff();
	virtual ~CStuff();
private:
	int     ID;          //工号
	CString Name;        //名称
	CString Sex;         //性别
	CString Knowledge;   //学历
	float   Wage;        //工资
public:
	int GetID() const
	{
		return ID;
	}
	CString GetName() const
	{
		return Name;
	}
	CString GetSex() const
	{
		return Sex;
	}
	CString GetKnowledge() const
	{
		return Knowledge;
	}
	float GetWage() const
	{
		return Wage;
	}

	void SetID(int uID)
	{
		ID = uID;
	}
	void SetName(CString strName)
	{
		Name = strName;
	}
	void SetSex(CString strSex)
	{
		Sex = strSex;
	}
	void SetKnowledge(CString strKnowledge)
	{
		Knowledge = strKnowledge;
	}
	void SetWage(float fWage)
	{
		Wage = fWage;
	}

};





#endif // !defined(AFX_STUFF_H__91AC661E_6C50_4912_9642_AF73495D4773__INCLUDED_)

⌨️ 快捷键说明

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