⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 student.h

📁 我上载了那么多怎么都说已经有上载的啦
💻 H
字号:
// Student.h: interface for the CStudent class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_STUDENT_H__D86F334B_39FA_492E_94AA_2EC85B900244__INCLUDED_)
#define AFX_STUDENT_H__D86F334B_39FA_492E_94AA_2EC85B900244__INCLUDED_

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

#include "Theme.h"
#include "Score.h"

class CStudent  
{
public:
	CStudent();
	CStudent(int nID, int nYear, const CString& strNumber, const CString& strClass, 
				   const CString& strName, const CString& strSex, const CString& strTeacher, 
				   const CString& strContact, const CString& strDistrict) ;
	virtual ~CStudent();

	CStudent(const CStudent&);
	CStudent& operator = (const CStudent&);

	static CStudent CreateInst(CString strSql);
	static BOOL Create(CStudent& );
	static BOOL Update(CStudent& );
	static BOOL Delete(CStudent& );
	static BOOL Delete(const CString& strWhere);

	BOOL Create(BOOL bUpdate = FALSE);
	BOOL Update();
	BOOL Delete();

	void SetID(int nID) {
		m_nID = nID;
	}
	int GetID() const {
		return m_nID;
	}
	int GetYear() const {
		return m_nYear;
	}
	CString GetNumber() const {
		return m_strNumber;
	}
	CString GetClass() const {
		return m_strClass;
	}
	CString GetName() const {
		return m_strName;
	}
	CString GetSex() const {
		return m_strSex;
	}
	CString GetTeacher() const {
		return m_strTeacher;
	}
	CString GetContact() const {
		return m_strContact;
	}
	CString GetDistrict() const {
		return m_strDistrict;
	}

	void SetTeacher(const CString& strTeacher)	{
		m_strTeacher = strTeacher;
	}
	void SetContact(const CString& strContact) {
		m_strContact = strContact;
	}
	void SetPlace(const CString& strPlace)	{
		m_strPlace = strPlace;
	}
	CString GetPlace() const {
		return m_strPlace;
	}
	void SetTheme(const CTheme& theme)	{
		m_Theme = theme;
	}
	CTheme GetTheme() const {
		return m_Theme;
	}
	void SetScore(const CScore& score)	{
		m_Score = score;
	}
	CScore GetScore() const {
		return m_Score;
	}
protected:
	int m_nID;
	int m_nYear;
	CString m_strNumber;

	CString m_strClass;
	CString m_strName;
	CString m_strSex;
	CString m_strTeacher;
	CString m_strContact;
	CString m_strDistrict;

	CString m_strPlace;

	CTheme m_Theme;
	CScore m_Score;
};

#endif // !defined(AFX_STUDENT_H__D86F334B_39FA_492E_94AA_2EC85B900244__INCLUDED_)

⌨️ 快捷键说明

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