-
大小: 89KB文件類型: .rar金幣: 2下載: 0 次發布日期: 2021-06-16
- 語言: C/C++
- 標簽:
資源簡介
本程序是我在讀研期間,上算法設計課程的課程設計---3階魔方算法設計。開發平臺為vc6.0,帶圖形界面。歡迎交流學習。。。

代碼片段和文件信息
//?magic.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“magic.h“
#include?“magicDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMagicApp
BEGIN_MESSAGE_MAP(CMagicApp?CWinApp)
//{{AFX_MSG_MAP(CMagicApp)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG
ON_COMMAND(ID_HELP?CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CMagicApp?construction
CMagicApp::CMagicApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CMagicApp?object
CMagicApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CMagicApp?initialization
BOOL?CMagicApp::InitInstance()
{
AfxEnableControlContainer();
//?Standard?initialization
//?If?you?are?not?using?these?features?and?wish?to?reduce?the?size
//??of?your?final?executable?you?should?remove?from?the?following
//??the?specific?initialization?routines?you?do?not?need.
#ifdef?_AFXDLL
Enable3dControls(); //?Call?this?when?using?MFC?in?a?shared?DLL
#else
Enable3dControlsStatic(); //?Call?this?when?linking?to?MFC?statically
#endif
CMagicDlg?dlg;
m_pMainWnd?=?&dlg;
int?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?OK
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?Cancel
}
//?Since?the?dialog?has?been?closed?return?FALSE?so?that?we?exit?the
//??application?rather?than?start?the?application‘s?message?pump.
return?FALSE;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????37888??2009-05-16?02:52??magic\magic.aps
?????文件???????2069??2009-05-16?17:20??magic\magic.clw
?????文件???????2049??2009-05-08?15:13??magic\magic.cpp
?????文件???????4274??2009-05-09?02:55??magic\magic.dsp
?????文件????????533??2009-05-08?15:13??magic\magic.dsw
?????文件???????1313??2009-05-08?15:13??magic\magic.h
?????文件?????107520??2009-05-16?17:20??magic\magic.ncb
?????文件??????52736??2009-05-16?17:20??magic\magic.opt
?????文件???????1175??2009-05-16?16:58??magic\magic.plg
?????文件???????6526??2009-05-16?02:52??magic\magic.rc
?????文件???????7294??2009-05-15?22:00??magic\magicDlg.cpp
?????文件???????3425??2009-05-09?13:20??magic\magicDlg.dsp
?????文件????????539??2009-05-09?13:20??magic\magicDlg.dsw
?????文件???????2002??2009-05-11?22:03??magic\magicDlg.h
?????文件??????66560??2009-05-16?02:39??magic\magicDlg.ncb
?????文件??????48640??2009-05-16?02:39??magic\magicDlg.opt
?????文件???????4163??2009-05-13?17:06??magic\magicDlg.plg
?????文件??????27277??2009-05-16?16:58??magic\magic_engine.cpp
?????文件???????2128??2009-05-16?01:54??magic\magic_engine.h
?????文件????????542??2009-05-08?16:55??magic\m_manger.cpp
?????文件????????500??2009-05-08?16:55??magic\m_manger.h
?????文件???????3561??2009-05-08?15:13??magic\ReadMe.txt
?????文件??????32768??2009-05-16?16:58??magic\Release\magic.exe
?????文件???????8829??2009-05-16?16:58??magic\Release\magic.obj
?????文件???????3452??2009-05-16?16:57??magic\Release\magic.res
?????文件??????21055??2009-05-16?16:58??magic\Release\magicDlg.obj
?????文件??????31366??2009-05-16?16:58??magic\Release\magic_engine.obj
?????文件????????804??2009-05-16?16:57??magic\Release\StdAfx.obj
?????文件??????50176??2009-05-16?16:58??magic\Release\vc60.idb
?????文件???????1078??2009-05-08?15:13??magic\res\magic.ico
............此處省略10個文件信息
- 上一篇:雙端隊列C++實現 雙端隊列C++實現
- 下一篇:飛翔的小鳥源代碼c++下編寫
評論
共有 條評論