gusucode.com > matlab的GA工具箱与vc混和实现遗传算法源码程序 > GATestDoc.cpp
// GATestDoc.cpp : implementation of the CGATestDoc class // #include "stdafx.h" #include "GATest.h" #include "GATestDoc.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CGATestDoc IMPLEMENT_DYNCREATE(CGATestDoc, CDocument) BEGIN_MESSAGE_MAP(CGATestDoc, CDocument) //{{AFX_MSG_MAP(CGATestDoc) // 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() ///////////////////////////////////////////////////////////////////////////// // CGATestDoc construction/destruction CGATestDoc::CGATestDoc() { // TODO: add one-time construction code here } CGATestDoc::~CGATestDoc() { } BOOL CGATestDoc::OnNewDocument() { if (!CDocument::OnNewDocument()) return FALSE; // TODO: add reinitialization code here // (SDI documents will reuse this document) return TRUE; } ///////////////////////////////////////////////////////////////////////////// // CGATestDoc serialization void CGATestDoc::Serialize(CArchive& ar) { if (ar.IsStoring()) { // TODO: add storing code here } else { // TODO: add loading code here } } ///////////////////////////////////////////////////////////////////////////// // CGATestDoc diagnostics #ifdef _DEBUG void CGATestDoc::AssertValid() const { CDocument::AssertValid(); } void CGATestDoc::Dump(CDumpContext& dc) const { CDocument::Dump(dc); } #endif //_DEBUG ///////////////////////////////////////////////////////////////////////////// // CGATestDoc commands