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

📄 ex_studentdoc.h

📁 半成品具有添加
💻 H
字号:
// Ex_StudentDoc.h : interface of the CEx_StudentDoc class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_EX_STUDENTDOC_H__AEB2A336_4297_4108_BA2B_0C04F2656315__INCLUDED_)
#define AFX_EX_STUDENTDOC_H__AEB2A336_4297_4108_BA2B_0C04F2656315__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CStudent:public CObject
{
	CString strID;
	CString strName;
	CString strSex;
	int intAge;
	CString strGrade;
	float fScore;
	DECLARE_SERIAL(CStudent)
public:
	CStudent(){};
	CStudent(CString strID,CString strName,CString strSex,int intAge,CString strGrade,float fScore);
	void Serialize(CArchive &ar);
	void Display(int nIndex,CListCtrl*pList);
	void ModifyStudent(CString name, CString sex, int age, CString grade, float score);
	float GetStudentScore();
	CString GetStudentGrade();
	int GetStudentAge();
	CString GetStudentSex();
	CString GetStudentName();
	CString GetStudentID();
};

class CEx_StudentDoc : public CDocument
{
protected: // create from serialization only
	CEx_StudentDoc();
	DECLARE_DYNCREATE(CEx_StudentDoc)

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CEx_StudentDoc)
	public:
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);
	//}}AFX_VIRTUAL

// Implementation
public:
	void ModifyStudentAt(int nIndex);
	void DeleteStudentAt(int nIndex);
	CObArray m_stuObArray;
	int GetAllRecNum(void);
	CStudent* GetStudentAt(int nIndex);
	virtual ~CEx_StudentDoc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CEx_StudentDoc)
	afx_msg void OnSturecAdd();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_EX_STUDENTDOC_H__AEB2A336_4297_4108_BA2B_0C04F2656315__INCLUDED_)

⌨️ 快捷键说明

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