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

📄 ex3_5doc.cpp

📁 This is Visual C++ basis operation. Using that you can fast go in study.
💻 CPP
字号:
// Ex3_5Doc.cpp : implementation of the CEx3_5Doc class
//

#include "stdafx.h"
#include "Ex3_5.h"

#include "Ex3_5Doc.h"

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

/////////////////////////////////////////////////////////////////////////////
// CEx3_5Doc

IMPLEMENT_DYNCREATE(CEx3_5Doc, CDocument)

BEGIN_MESSAGE_MAP(CEx3_5Doc, CDocument)
	//{{AFX_MSG_MAP(CEx3_5Doc)
		// 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_5Doc construction/destruction

CEx3_5Doc::CEx3_5Doc()
{
	// TODO: add one-time construction code here
	m_iPoint=-1;
}

CEx3_5Doc::~CEx3_5Doc()
{
}

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

	// TODO: add reinitialization code here
	// (SDI documents will reuse this document)
	m_iPoint=-1;

	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CEx3_5Doc serialization

void CEx3_5Doc::Serialize(CArchive& ar)
{
	if (ar.IsStoring())
	{
		// TODO: add storing code here
		ar<<m_iPoint;
		for(int i=0;i<=m_iPoint;i++)
			ar<<m_PointArray[m_iPoint];
	}
	else
	{
		// TODO: add loading code here
		ar>>m_iPoint;
		for(int i=0;i<=m_iPoint;i++)
			ar>>m_PointArray[m_iPoint];

	}
}

/////////////////////////////////////////////////////////////////////////////
// CEx3_5Doc diagnostics

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

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

/////////////////////////////////////////////////////////////////////////////
// CEx3_5Doc commands

⌨️ 快捷键说明

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