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

📄 anndoc.cpp

📁 annbp_BP神经网络原代码,经过一些算法改动,希望大家多多支持.
💻 CPP
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -