資源簡介
利用C++MFC實現了簡單的掃雷系統 包含所有報告以及答辯PPT 很好用的哦

代碼片段和文件信息
//?luliang.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“luliang.h“
#include?“MainFrm.h“
#include?“luliangDoc.h“
#include?“luliangView.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CLuliangApp
BEGIN_MESSAGE_MAP(CLuliangApp?CWinApp)
//{{AFX_MSG_MAP(CLuliangApp)
ON_COMMAND(ID_APP_ABOUT?OnAppAbout)
//?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
//?Standard?file?based?document?commands
ON_COMMAND(ID_FILE_NEW?CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN?CWinApp::OnFileOpen)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CLuliangApp?construction
CLuliangApp::CLuliangApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CLuliangApp?object
CLuliangApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CLuliangApp?initialization
BOOL?CLuliangApp::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
//?Change?the?registry?key?under?which?our?settings?are?stored.
//?TODO:?You?should?modify?this?string?to?be?something?appropriate
//?such?as?the?name?of?your?company?or?organization.
SetRegistryKey(_T(“Local?AppWizard-Generated?Applications“));
LoadStdProfileSettings();??//?Load?standard?INI?file?options?(including?MRU)
//?Register?the?application‘s?document?templates.??Document?templates
//??serve?as?the?connection?between?documents?frame?windows?and?views.
CSingleDocTemplate*?pDocTemplate;
pDocTemplate?=?new?CSingleDocTemplate(
IDR_MAINframe
RUNTIME_CLASS(CLuliangDoc)
RUNTIME_CLASS(CMainframe)???????//?main?SDI?frame?window
RUNTIME_CLASS(CLuliangView));
AddDocTemplate(pDocTemplate);
//?Parse?command?line?for?standard?shell?commands?DDE?file?open
CCommandLineInfo?cmdInfo;
ParseCommandLine(cmdInfo);
//?Dispatch?commands?specified?on?the?command?line
if?(!ProcessShellCommand(cmdInfo))
return?FALSE;
//?The?one?and?only?window?has?been?initialized?so?show?and?update?it.
m_pMainWnd->SetWindowPos(NULL?350100?312460?SWP_SHOWWINDOW|SWP_DRAWframe);
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow();
return?TRUE;
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????162??2007-09-08?17:36??陸亮掃雷\說明.txt
?????文件?????102400??2007-09-07?21:54??陸亮掃雷\答辯PPT\課程設計.ppt
?????目錄??????????0??2008-02-29?20:21??陸亮掃雷\答辯PPT
?????文件??????60648??2007-12-24?23:17??陸亮掃雷\源代碼\luliang.aps
?????文件???????2583??2008-01-26?17:23??陸亮掃雷\源代碼\luliang.clw
?????文件???????4212??2008-01-26?17:23??陸亮掃雷\源代碼\luliang.cpp
?????文件???????4845??2007-09-06?18:28??陸亮掃雷\源代碼\luliang.dsp
?????文件????????539??2007-09-02?09:44??陸亮掃雷\源代碼\luliang.dsw
?????文件???????1367??2007-09-02?09:44??陸亮掃雷\源代碼\luliang.h
?????文件?????197632??2008-01-26?17:23??陸亮掃雷\源代碼\luliang.ncb
?????文件??????56832??2008-01-26?17:23??陸亮掃雷\源代碼\luliang.opt
?????文件???????2050??2008-01-26?17:23??陸亮掃雷\源代碼\luliang.plg
?????文件??????11308??2007-09-08?16:24??陸亮掃雷\源代碼\luliang.rc
?????文件???????1762??2007-09-02?09:44??陸亮掃雷\源代碼\luliangDoc.cpp
?????文件???????1486??2007-09-02?09:44??陸亮掃雷\源代碼\luliangDoc.h
?????文件??????10440??2007-09-08?20:28??陸亮掃雷\源代碼\luliangView.cpp
?????文件???????3318??2007-09-06?20:58??陸亮掃雷\源代碼\luliangView.h
?????文件???????1989??2007-09-08?20:28??陸亮掃雷\源代碼\MainFrm.cpp
?????文件???????1427??2007-09-08?20:28??陸亮掃雷\源代碼\MainFrm.h
?????文件???????4019??2007-09-02?09:44??陸亮掃雷\源代碼\ReadMe.txt
?????文件????????959??2007-09-06?20:58??陸亮掃雷\源代碼\resource.h
?????文件???????1109??2007-09-06?20:56??陸亮掃雷\源代碼\SetMineArea.cpp
?????文件???????1268??2007-09-06?20:56??陸亮掃雷\源代碼\SetMineArea.h
?????文件????????209??2007-09-02?09:44??陸亮掃雷\源代碼\StdAfx.cpp
?????文件???????1054??2007-09-02?09:44??陸亮掃雷\源代碼\StdAfx.h
?????文件??????12718??2007-09-08?16:24??陸亮掃雷\源代碼\res\bitmap1.bmp
?????文件???????7334??2007-09-06?23:38??陸亮掃雷\源代碼\res\bitmap_w.bmp
?????文件??????12438??2007-09-06?18:19??陸亮掃雷\源代碼\res\bmp00001.bmp
?????文件???????1078??2007-09-02?09:44??陸亮掃雷\源代碼\res\luliang.ico
?????文件????????399??2007-09-02?09:44??陸亮掃雷\源代碼\res\luliang.rc2
............此處省略23個文件信息
- 上一篇:哈夫曼樹的應用和實現 C語言
- 下一篇:c++ 實現matlab smooth 函數
評論
共有 條評論