anndoc.cpp

来自「annbp_BP神经网络原代码,经过一些算法改动,希望大家多多支持.」· C++ 代码 · 共 88 行

CPP
88
字号
// ANNDoc.cpp : implementation of the CANNDoc class
//

#include "stdafx.h"
#include "ANN.h"

#include "ANNDoc.h"
#include "Annbp.h"

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

/////////////////////////////////////////////////////////////////////////////
// CANNDoc

IMPLEMENT_DYNCREATE(CANNDoc, CDocument)

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

/////////////////////////////////////////////////////////////////////////////
// CANNDoc construction/destruction

CANNDoc::CANNDoc()
{
	// TODO: add one-time construction code here
	nnType = -1;
	m_pAnn = new Annbp;
}

CANNDoc::~CANNDoc()
{
	delete m_pAnn;
}

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

	// TODO: add reinitialization code here
	// (SDI documents will reuse this document)
	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CANNDoc serialization

void CANNDoc::Serialize(CArchive& ar)
{
	m_pAnn->Serialize(ar);
	//if (ar.IsStoring())
	//{
		// TODO: add storing code here
	//}
	//else
	//{
		// TODO: add loading code here
	//}
}

/////////////////////////////////////////////////////////////////////////////
// CANNDoc diagnostics

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

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

/////////////////////////////////////////////////////////////////////////////
// CANNDoc commands

⌨️ 快捷键说明

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