資源簡介
雷游戲是Windows操作系統自帶的一款小游戲。在過去的幾年里,Windows操作系統雖歷經數次更新換代,變得越來越龐大、復雜,功能越來越齊全,但是這款小游戲依然保持著原來的容貌,可見這款小游戲很受廣大用戶的喜愛,所以在此基礎上,我們準備在本次課程設計的時候,利用C++做一個掃雷小游戲,通過做這個小游戲來讓我們課堂上所學到的知識用于實踐。

代碼片段和文件信息
//?2_1.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“2_1.h“
#include?“MainFrm.h“
#include?“2_1Doc.h“
#include?“2_1View.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMy2_1App
BEGIN_MESSAGE_MAP(CMy2_1App?CWinApp)
//{{AFX_MSG_MAP(CMy2_1App)
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)
//?Standard?print?setup?command
ON_COMMAND(ID_FILE_PRINT_SETUP?CWinApp::OnFilePrintSetup)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CMy2_1App?construction
CMy2_1App::CMy2_1App()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CMy2_1App?object
CMy2_1App?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CMy2_1App?initialization
BOOL?CMy2_1App::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(CMy2_1Doc)
RUNTIME_CLASS(CMainframe)???????//?main?SDI?frame?window
RUNTIME_CLASS(CMy2_1View));
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->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow();
return?TRUE;
}
/////////////////
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????235424??2019-12-23?11:22??c++\C++面向程序設計答辯.pptx
?????文件????2895952??2019-11-10?16:35??c++\VCMFC小游戲開發實例教程掃雷五子棋俄羅斯老鼠滾球.rar
?????文件??????52316??2019-12-28?14:47??c++\掃雷\2_1\2_1.aps
?????文件???????1936??2019-12-28?15:42??c++\掃雷\2_1\2_1.clw
?????文件???????4183??2001-10-22?13:14??c++\掃雷\2_1\2_1.cpp
?????文件???????6553??2019-12-21?16:29??c++\掃雷\2_1\2_1.dsp
?????文件????????531??2001-10-22?13:14??c++\掃雷\2_1\2_1.dsw
?????文件???????1333??2001-10-22?13:14??c++\掃雷\2_1\2_1.h
?????文件?????140288??2019-12-28?15:43??c++\掃雷\2_1\2_1.ncb
?????文件??????56832??2019-12-28?15:43??c++\掃雷\2_1\2_1.opt
?????文件????????240??2019-12-28?15:22??c++\掃雷\2_1\2_1.plg
?????文件??????11813??2019-12-28?14:47??c++\掃雷\2_1\2_1.rc
?????文件???????1716??2001-10-22?13:14??c++\掃雷\2_1\2_1Doc.cpp
?????文件???????1456??2001-10-22?13:14??c++\掃雷\2_1\2_1Doc.h
?????文件??????14303??2019-12-28?14:40??c++\掃雷\2_1\2_1View.cpp
?????文件???????2453??2019-12-28?12:35??c++\掃雷\2_1\2_1View.h
?????文件????4834304??2019-12-28?14:40??c++\掃雷\2_1\Debug\2_1.bsc
?????文件?????131134??2019-12-28?14:47??c++\掃雷\2_1\Debug\2_1.exe
?????文件?????389608??2019-12-28?14:47??c++\掃雷\2_1\Debug\2_1.ilk
?????文件??????22872??2019-12-28?12:35??c++\掃雷\2_1\Debug\2_1.obj
?????文件????7064836??2019-12-27?21:56??c++\掃雷\2_1\Debug\2_1.pch
?????文件?????500736??2019-12-28?14:47??c++\掃雷\2_1\Debug\2_1.pdb
?????文件??????12188??2019-12-28?14:47??c++\掃雷\2_1\Debug\2_1.res
?????文件??????????0??2019-12-28?12:35??c++\掃雷\2_1\Debug\2_1.sbr
?????文件??????14636??2019-12-27?21:56??c++\掃雷\2_1\Debug\2_1Doc.obj
?????文件??????????0??2019-12-27?21:56??c++\掃雷\2_1\Debug\2_1Doc.sbr
?????文件??????43629??2019-12-28?14:40??c++\掃雷\2_1\Debug\2_1View.obj
?????文件??????????0??2019-12-28?14:40??c++\掃雷\2_1\Debug\2_1View.sbr
?????文件??????18666??2019-12-27?21:56??c++\掃雷\2_1\Debug\MainFrm.obj
?????文件??????????0??2019-12-27?21:56??c++\掃雷\2_1\Debug\MainFrm.sbr
............此處省略53個文件信息
- 上一篇:基于IMU的AHRS
- 下一篇:C++ 網絡爬蟲代碼
評論
共有 條評論