-
大小: 721KB文件類型: .rar金幣: 2下載: 0 次發(fā)布日期: 2021-06-01
- 語言: C/C++
- 標(biāo)簽:
資源簡介
貓和老鼠 C++游戲代碼 klfjklasjfklj

代碼片段和文件信息
//?CatCatchRat.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“CatCatchRat.h“
#include?“MainFrm.h“
#include?“CatCatchRatDoc.h“
#include?“CatCatchRatView.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CCatCatchRatApp
BEGIN_MESSAGE_MAP(CCatCatchRatApp?CWinApp)
//{{AFX_MSG_MAP(CCatCatchRatApp)
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()
/////////////////////////////////////////////////////////////////////////////
//?CCatCatchRatApp?construction
CCatCatchRatApp::CCatCatchRatApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CCatCatchRatApp?object
CCatCatchRatApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CCatCatchRatApp?initialization
BOOL?CCatCatchRatApp::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(CCatCatchRatDoc)
RUNTIME_CLASS(CMainframe)???????//?main?SDI?frame?window
RUNTIME_CLASS(CCatCatchRatView));
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
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件???????1205??2005-12-01?23:10??貓抓老鼠\CatCatchRat\SelectDlg.h
?????文件??????36232??2009-01-05?17:23??貓抓老鼠\CatCatchRat\CatCatchRat.aps
?????文件??????12607??2005-12-01?23:10??貓抓老鼠\CatCatchRat\CatCatchRat.rc
?????文件???????1309??2005-12-01?23:10??貓抓老鼠\CatCatchRat\SelectDlg.cpp
?????文件??????13692??2005-12-01?23:03??貓抓老鼠\CatCatchRat\CatCatchRatView.cpp
?????文件???????3660??2005-12-01?22:38??貓抓老鼠\CatCatchRat\CatCatchRatView.h
?????文件???????2635??2009-01-05?17:26??貓抓老鼠\CatCatchRat\CatCatchRat.clw
?????文件???????4431??2005-11-24?22:18??貓抓老鼠\CatCatchRat\ReadMe.txt
?????文件???????1411??2005-11-24?22:18??貓抓老鼠\CatCatchRat\CatCatchRat.h
?????文件???????4299??2005-11-24?22:18??貓抓老鼠\CatCatchRat\CatCatchRat.cpp
?????文件???????1054??2005-11-24?22:18??貓抓老鼠\CatCatchRat\StdAfx.h
?????文件????????213??2005-11-24?22:18??貓抓老鼠\CatCatchRat\StdAfx.cpp
?????文件???????1516??2005-12-01?23:10??貓抓老鼠\CatCatchRat\Resource.h
?????文件???????1530??2005-11-24?22:18??貓抓老鼠\CatCatchRat\CatCatchRatDoc.h
?????文件???????1842??2005-11-24?22:18??貓抓老鼠\CatCatchRat\CatCatchRatDoc.cpp
?????文件???????5316??2005-12-01?23:12??貓抓老鼠\CatCatchRat\CatCatchRat.dsp
?????文件????????547??2005-11-24?22:18??貓抓老鼠\CatCatchRat\CatCatchRat.dsw
?????文件?????123904??2009-01-05?17:27??貓抓老鼠\CatCatchRat\CatCatchRat.ncb
?????文件???????2402??2009-01-05?17:23??貓抓老鼠\CatCatchRat\CatCatchRat.plg
?????文件????????623??2005-12-01?15:52??貓抓老鼠\CatCatchRat\Window?st
?????文件???????1583??2005-12-01?16:09??貓抓老鼠\CatCatchRat\MainFrm.h
?????文件???????2682??2005-12-01?16:13??貓抓老鼠\CatCatchRat\MainFrm.cpp
?????文件??????52736??2009-01-05?17:27??貓抓老鼠\CatCatchRat\CatCatchRat.opt
?????文件??????13080??2009-01-05?17:23??貓抓老鼠\CatCatchRat\Debug\CatCatchRat.res
?????文件?????364544??2009-01-05?17:23??貓抓老鼠\CatCatchRat\Debug\vc60.pdb
?????文件????1368542??2009-01-05?17:23??貓抓老鼠\CatCatchRat\Debug\StdAfx.sbr
?????文件?????105538??2009-01-05?17:23??貓抓老鼠\CatCatchRat\Debug\StdAfx.obj
?????文件??????????0??2009-01-05?17:23??貓抓老鼠\CatCatchRat\Debug\CatCatchRat.sbr
?????文件??????????0??2009-01-05?17:23??貓抓老鼠\CatCatchRat\Debug\CatCatchRatDoc.sbr
?????文件??????????0??2009-01-05?17:23??貓抓老鼠\CatCatchRat\Debug\CatCatchRatView.sbr
............此處省略28個(gè)文件信息
評論
共有 條評論