aidoc.cpp

来自「人工智能中经典算法-宽度搜索和启发是搜索(A*算法)在VC环境下的实现代码」· C++ 代码 · 共 82 行

CPP
82
字号
// AIDoc.cpp : implementation of the CAIDoc class
//

#include "stdafx.h"
#include "AI.h"

#include "AIDoc.h"
#include "searchalg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CAIDoc

IMPLEMENT_DYNCREATE(CAIDoc, CDocument)

BEGIN_MESSAGE_MAP(CAIDoc, CDocument)
	//{{AFX_MSG_MAP(CAIDoc)
		// 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()

/////////////////////////////////////////////////////////////////////////////
// CAIDoc construction/destruction

CAIDoc::CAIDoc()
{
	// TODO: add one-time construction code here

}

CAIDoc::~CAIDoc()
{
}

BOOL CAIDoc::OnNewDocument()
{

	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CAIDoc serialization

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



/////////////////////////////////////////////////////////////////////////////
// CAIDoc diagnostics

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

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

/////////////////////////////////////////////////////////////////////////////
// CAIDoc commands

⌨️ 快捷键说明

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