資源簡介
著名人工智能程序,agent技術的應用,別當做作業交上去啊,同學們。

代碼片段和文件信息
//?MainFrm.cpp?:?implementation?of?the?CMainframe?class
//
#include?“stdafx.h“
#include?“Wumpus.h“
#include?“MainFrm.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMainframe
IMPLEMENT_DYNCREATE(CMainframe?CframeWnd)
BEGIN_MESSAGE_MAP(CMainframe?CframeWnd)
//{{AFX_MSG_MAP(CMainframe)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code?!
ON_WM_CREATE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
static?UINT?indicators[]?=
{
ID_SEPARATOR???????????//?status?line?indicator
ID_INDICATOR_CAPS
ID_INDICATOR_NUM
ID_INDICATOR_SCRL
};
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?construction/destruction
CMainframe::CMainframe()
{
//?TODO:?add?member?initialization?code?here
}
CMainframe::~CMainframe()
{
}
int?CMainframe::OnCreate(LPCREATESTRUCT?lpCreateStruct)
{
if?(CframeWnd::OnCreate(lpCreateStruct)?==?-1)
return?-1;
if?(!m_wndToolBar.CreateEx(this?TBstyle_FLAT?WS_CHILD?|?WS_VISIBLE?|?CBRS_TOP
|?CBRS_GRIPPER?|?CBRS_TOOLTIPS?|?CBRS_FLYBY?|?CBRS_SIZE_DYNAMIC)?||
!m_wndToolBar.LoadToolBar(IDR_MAINframe))
{
TRACE0(“Failed?to?create?toolbar\n“);
return?-1;??????//?fail?to?create
}
if?(!m_wndStatusBar.Create(this)?||
!m_wndStatusBar.SetIndicators(indicators
??sizeof(indicators)/sizeof(UINT)))
{
TRACE0(“Failed?to?create?status?bar\n“);
return?-1;??????//?fail?to?create
}
//?TODO:?Delete?these?three?lines?if?you?don‘t?want?the?toolbar?to
//??be?dockable
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndToolBar);
return?0;
}
BOOL?CMainframe::PreCreateWindow(CREATESTRUCT&?cs)
{
if(?!CframeWnd::PreCreateWindow(cs)?)
return?FALSE;
//?TODO:?Modify?the?Window?class?or?styles?here?by?modifying
//??the?CREATESTRUCT?cs
return?TRUE;
}
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?diagnostics
#ifdef?_DEBUG
void?CMainframe::AssertValid()?const
{
CframeWnd::AssertValid();
}
void?CMainframe::Dump(CDumpContext&?dc)?const
{
CframeWnd::Dump(dc);
}
#endif?//_DEBUG
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?message?handlers
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????????0??2010-11-27?14:21??1a89e074fe7d\Wumpus\Debug\MyStatic.sbr
?????文件?????105954??2010-11-27?14:21??1a89e074fe7d\Wumpus\Debug\StdAfx.obj
?????文件????1375064??2010-11-27?14:21??1a89e074fe7d\Wumpus\Debug\StdAfx.sbr
?????文件?????205824??2010-11-27?14:21??1a89e074fe7d\Wumpus\Debug\vc60.idb
?????文件?????372736??2010-11-27?14:21??1a89e074fe7d\Wumpus\Debug\vc60.pdb
?????文件????3138560??2010-11-27?14:21??1a89e074fe7d\Wumpus\Debug\Wumpus.bsc
?????文件??????15419??2010-11-27?14:21??1a89e074fe7d\Wumpus\Debug\Wumpus.obj
?????文件????6943744??2010-11-27?14:21??1a89e074fe7d\Wumpus\Debug\Wumpus.pch
?????文件??????12924??2010-11-27?14:17??1a89e074fe7d\Wumpus\Debug\Wumpus.res
?????文件??????????0??2010-11-27?14:21??1a89e074fe7d\Wumpus\Debug\Wumpus.sbr
?????文件??????????0??2010-11-27?14:21??1a89e074fe7d\Wumpus\Debug\WumpusDlg.sbr
?????文件???????2507??2006-03-08?23:55??1a89e074fe7d\Wumpus\MainFrm.cpp
?????文件???????1581??2006-03-08?23:55??1a89e074fe7d\Wumpus\MainFrm.h
?????文件????????897??2006-03-19?15:52??1a89e074fe7d\Wumpus\MyStatic.cpp
?????文件???????1169??2006-03-19?15:39??1a89e074fe7d\Wumpus\MyStatic.h
?????文件???????3579??2006-03-16?20:11??1a89e074fe7d\Wumpus\ReadMe.txt
?????文件???????2102??2006-03-16?22:36??1a89e074fe7d\Wumpus\res\bitmap1.bmp
?????文件???????2102??2006-03-16?22:29??1a89e074fe7d\Wumpus\res\gold.bmp
?????文件???????2102??2006-03-16?22:29??1a89e074fe7d\Wumpus\res\hero_down.bmp
?????文件???????2102??2006-03-16?22:29??1a89e074fe7d\Wumpus\res\pit.bmp
????..A.SH.?????15872??2006-03-16?15:46??1a89e074fe7d\Wumpus\res\Thumbs.db
?????文件????????718??2006-03-13?19:42??1a89e074fe7d\Wumpus\res\Toolbar.bmp
?????文件????????238??2006-03-13?19:28??1a89e074fe7d\Wumpus\res\toolbar1.bmp
?????文件???????3126??2006-03-16?22:29??1a89e074fe7d\Wumpus\res\wumpus.bmp
?????文件???????1078??2006-03-16?20:11??1a89e074fe7d\Wumpus\res\Wumpus.ico
?????文件????????398??2006-03-16?20:11??1a89e074fe7d\Wumpus\res\Wumpus.rc2
?????文件???????1078??2006-03-08?23:55??1a89e074fe7d\Wumpus\res\WumpusDoc.ico
?????文件???????1508??2006-03-16?22:36??1a89e074fe7d\Wumpus\resource.h
?????文件????????165??2006-03-14?16:13??1a89e074fe7d\Wumpus\resource.hm
?????文件????????208??2006-03-16?20:11??1a89e074fe7d\Wumpus\StdAfx.cpp
............此處省略30個文件信息
- 上一篇:VC++實現兩臺電腦文件傳輸(源代碼)
- 下一篇:C++&easyx;的坦克大戰
評論
共有 條評論