ex010205doc.h
来自「深入浅出Visual C++入门进阶与应用实例 随书光盘 作者 何志丹」· C头文件 代码 · 共 67 行
H
67 行
// Ex010205Doc.h : interface of the CEx010205Doc class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_EX010205DOC_H__5A11961F_9B89_452C_AB1B_3BE299B93B4A__INCLUDED_)
#define AFX_EX010205DOC_H__5A11961F_9B89_452C_AB1B_3BE299B93B4A__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Afxtempl.h"
class CStudent
{
public :
int m_iStuNo ;//学号;
int m_iScore ;//分数;
};
class CEx010205Doc : public CDocument
{
protected: // create from serialization only
CEx010205Doc();
DECLARE_DYNCREATE(CEx010205Doc)
protected:
CArray<CStudent,CStudent&> m_arStus ;//记录所有的学生信息
public:
CStudent i_CurStu ;//记录当前信息
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CEx010205Doc)
public:
virtual BOOL OnNewDocument();
virtual void Serialize(CArchive& ar);
//}}AFX_VIRTUAL
// Implementation
public:
bool SetCurStu(int iStuNo);
virtual ~CEx010205Doc();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
protected:
//{{AFX_MSG(CEx010205Doc)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_EX010205DOC_H__5A11961F_9B89_452C_AB1B_3BE299B93B4A__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?