ex07adoc.h

来自「MFC实现的学生成绩管理系统」· C头文件 代码 · 共 78 行

H
78
字号
// Ex07aDoc.h : interface of the CEx07aDoc class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_EX07ADOC_H__A5C68134_7197_4876_B55F_0F5642AA0A1C__INCLUDED_)
#define AFX_EX07ADOC_H__A5C68134_7197_4876_B55F_0F5642AA0A1C__INCLUDED_

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

//在此添加类CStudent地说明
class CStudent : public CObject
{
public:
	DECLARE_DYNCREATE(CStudent) //允许动态创建CStudent对象

    long m_nCode;
	CString m_sName;
	long m_nAge;
    double m_lScore;
	double m_lScore2;
	double m_lScore3;
	
	CStudent();
	CStudent(int code,CString name,int age,double score, double score2, double score3);
};


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

// Attributes
public:

// Operations
public:
	POSITION curPos;
	CTypedPtrList<CObList, CStudent*>   m_dataList;

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

// Implementation
public:
	virtual ~CEx07aDoc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CEx07aDoc)
		// 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_EX07ADOC_H__A5C68134_7197_4876_B55F_0F5642AA0A1C__INCLUDED_)

⌨️ 快捷键说明

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