資源簡介
約瑟夫算法的實(shí)現(xiàn),實(shí)現(xiàn)了可視化的界面,調(diào)試成功,界面簡潔

代碼片段和文件信息
//?josph.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“josph.h“
#include?“josphDlg.h“
#include?“string.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CJosphApp
BEGIN_MESSAGE_MAP(CJosphApp?CWinApp)
//{{AFX_MSG_MAP(CJosphApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CJosphApp?construction
CJosphApp::CJosphApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CJosphApp?object
CJosphApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CJosphApp?initialization
BOOL?CJosphApp::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
CJosphDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????2220??2010-06-05?15:40??josph\Chain.h
?????文件?????110648??2010-06-05?15:52??josph\Debug\josph.exe
?????文件?????312912??2010-06-05?15:52??josph\Debug\josph.ilk
?????文件??????14161??2010-06-05?15:51??josph\Debug\josph.obj
?????文件????5498948??2010-06-05?14:17??josph\Debug\josph.pch
?????文件?????377856??2010-06-05?15:52??josph\Debug\josph.pdb
?????文件???????3120??2010-06-05?15:52??josph\Debug\josph.res
?????文件??????36725??2010-06-05?15:52??josph\Debug\josphDlg.obj
?????文件?????105390??2010-06-05?14:17??josph\Debug\StdAfx.obj
?????文件?????205824??2010-06-05?15:53??josph\Debug\vc60.idb
?????文件?????364544??2010-06-05?15:52??josph\Debug\vc60.pdb
?????文件??????36064??2010-06-05?15:52??josph\josph.aps
?????文件???????1435??2010-06-05?15:53??josph\josph.clw
?????文件???????2072??2010-06-05?14:42??josph\josph.cpp
?????文件???????4201??2010-06-05?15:04??josph\josph.dsp
?????文件????????518??2010-06-05?13:52??josph\josph.dsw
?????文件???????1313??2010-06-05?13:52??josph\josph.h
?????文件??????58368??2010-06-05?15:57??josph\josph.ncb
?????文件??????55808??2010-06-05?15:57??josph\josph.opt
?????文件????????672??2010-06-05?15:52??josph\josph.plg
?????文件???????6061??2010-06-05?15:52??josph\josph.rc
?????文件???????5762??2010-06-05?15:52??josph\josphDlg.cpp
?????文件???????1459??2010-06-05?15:51??josph\josphDlg.h
?????文件???????3561??2010-06-05?13:52??josph\ReadMe.txt
?????文件???????1078??2010-06-05?13:52??josph\res\josph.ico
?????文件????????397??2010-06-05?13:52??josph\res\josph.rc2
?????文件????????821??2010-06-05?15:51??josph\resource.h
?????文件????????207??2010-06-05?13:52??josph\StdAfx.cpp
?????文件???????1054??2010-06-05?13:52??josph\StdAfx.h
?????目錄??????????0??2010-06-05?15:52??josph\Debug
............此處省略5個文件信息
評論
共有 條評論