ex3_4doc.cpp

来自「mfc实验例题也是高教得配套资料 刚找到得 这部分应该是自学的内容」· C++ 代码 · 共 89 行

CPP
89
字号
// Ex3_4Doc.cpp : implementation of the CEx3_4Doc class
//

#include "stdafx.h"
#include "Ex3_4.h"

#include "Ex3_4Doc.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CEx3_4Doc

IMPLEMENT_DYNCREATE(CEx3_4Doc, CDocument)

BEGIN_MESSAGE_MAP(CEx3_4Doc, CDocument)
	//{{AFX_MSG_MAP(CEx3_4Doc)
		// NOTE - the ClassWizard will add and remove mapping macros here.
		//    DO NOT EDIT what you see in these blocks of generated code!
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CEx3_4Doc construction/destruction

CEx3_4Doc::CEx3_4Doc()
{
	// TODO: add one-time construction code here
	arr[0] =40;	arr[1] = 50;
	arr[2] = 70;arr[3] = 80;
	arr[4] = 100;arr[5] = 140;
	arr[6] = 160;arr[7] = 180;
	arr[8] = 190;arr[9] = 200;
}

CEx3_4Doc::~CEx3_4Doc()
{
}

BOOL CEx3_4Doc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;

	// TODO: add reinitialization code here
	// (SDI documents will reuse this document)

	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CEx3_4Doc serialization

void CEx3_4Doc::Serialize(CArchive& ar)
{
	if (ar.IsStoring())
	{
		// TODO: add storing code here
	}
	else
	{
		// TODO: add loading code here
	}
}

/////////////////////////////////////////////////////////////////////////////
// CEx3_4Doc diagnostics

#ifdef _DEBUG
void CEx3_4Doc::AssertValid() const
{
	CDocument::AssertValid();
}

void CEx3_4Doc::Dump(CDumpContext& dc) const
{
	CDocument::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CEx3_4Doc commands

⌨️ 快捷键说明

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