資源簡介
哲學家進餐問題 經典算法 vc源代碼 測試通過
代碼片段和文件信息
//?eating.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“eating.h“
#include?“eatingDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CEatingApp
BEGIN_MESSAGE_MAP(CEatingApp?CWinApp)
//{{AFX_MSG_MAP(CEatingApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CEatingApp?construction
CEatingApp::CEatingApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CEatingApp?object
CEatingApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CEatingApp?initialization
BOOL?CEatingApp::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
CEatingDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????421512??2004-07-09?15:20??哲學家進餐問題\eating\eating.aps
?????文件???????1728??2004-07-09?15:20??哲學家進餐問題\eating\eating.clw
?????文件???????2063??2004-06-03?23:43??哲學家進餐問題\eating\eating.cpp
?????文件???????4947??2004-06-06?17:14??哲學家進餐問題\eating\eating.dsp
?????文件????????535??2004-06-03?23:43??哲學家進餐問題\eating\eating.dsw
?????文件???????1324??2004-06-03?23:43??哲學家進餐問題\eating\eating.h
?????文件??????50176??2004-07-09?15:20??哲學家進餐問題\eating\eating.ncb
?????文件??????72704??2004-07-09?15:20??哲學家進餐問題\eating\eating.opt
?????文件???????2791??2004-07-09?15:14??哲學家進餐問題\eating\eating.plg
?????文件???????6921??2004-07-09?15:20??哲學家進餐問題\eating\eating.rc
?????文件??????10998??2004-06-06?17:14??哲學家進餐問題\eating\eatingDlg.cpp
?????文件???????1833??2004-06-06?16:35??哲學家進餐問題\eating\eatingDlg.h
?????文件????????667??2004-06-06?16:25??哲學家進餐問題\eating\eatingStruct.h
?????文件???????9023??2004-06-06?15:19??哲學家進餐問題\eating\GradientStatic.cpp
?????文件???????2175??2004-06-06?01:13??哲學家進餐問題\eating\GradientStatic.h
?????文件?????????93??2004-06-05?20:51??哲學家進餐問題\eating\g_variable.h
?????文件???????3579??2004-06-03?23:43??哲學家進餐問題\eating\ReadMe.txt
?????文件???????1078??2004-06-03?23:43??哲學家進餐問題\eating\res\eating.ico
?????文件????????398??2004-06-03?23:43??哲學家進餐問題\eating\res\eating.rc2
?????文件??????11894??2004-06-05?23:00??哲學家進餐問題\eating\res\m11.bmp
?????文件??????13554??2004-06-05?23:00??哲學家進餐問題\eating\res\m21.bmp
?????文件??????12534??2004-06-05?23:00??哲學家進餐問題\eating\res\m31.bmp
?????文件??????11894??2004-06-05?23:00??哲學家進餐問題\eating\res\p11.bmp
?????文件??????13554??2004-06-05?23:17??哲學家進餐問題\eating\res\p21.bmp
?????文件??????12534??2004-06-05?23:16??哲學家進餐問題\eating\res\p31.bmp
????..A.SH.?????24064??2004-06-05?23:22??哲學家進餐問題\eating\res\Thumbs.db
?????文件?????307256??2004-06-06?00:45??哲學家進餐問題\eating\res\zuomian.bmp
?????文件???????1228??2004-06-06?17:12??哲學家進餐問題\eating\Resource.h
?????文件???????1033??2004-06-06?17:12??哲學家進餐問題\eating\SpecialDlg.cpp
?????文件???????1259??2004-06-06?17:12??哲學家進餐問題\eating\SpecialDlg.h
............此處省略9個文件信息
- 上一篇:比較兩個字符串大小匯編語言源代碼加實驗報告
- 下一篇:GTK實現數字表顯示
評論
共有 條評論