資源簡介
這是一個用二叉樹做的心理測試,它是基于mfc做的。。。
代碼片段和文件信息
//?BTree.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“BTree.h“
#include?“BTreeDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CBTreeApp
BEGIN_MESSAGE_MAP(CBTreeApp?CWinApp)
//{{AFX_MSG_MAP(CBTreeApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CBTreeApp?construction
CBTreeApp::CBTreeApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CBTreeApp?object
CBTreeApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CBTreeApp?initialization
BOOL?CBTreeApp::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
CBTreeDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???24944096??2011-05-23?21:52??BTree\BTree.aps
?????文件???????2161??2011-05-23?21:58??BTree\BTree.clw
?????文件???????2049??2011-05-20?17:21??BTree\BTree.cpp
?????文件???????5086??2011-05-21?19:09??BTree\BTree.dsp
?????文件????????518??2011-05-20?17:21??BTree\BTree.dsw
?????文件???????1313??2011-05-20?17:21??BTree\BTree.h
?????文件?????164864??2011-05-23?21:58??BTree\BTree.ncb
?????文件??????52736??2011-05-23?21:58??BTree\BTree.opt
?????文件????????747??2011-05-23?21:57??BTree\BTree.plg
?????文件???????7115??2011-05-21?19:08??BTree\BTree.rc
?????文件???????7784??2011-05-23?21:57??BTree\BTreeDlg.cpp
?????文件???????1475??2011-05-21?18:27??BTree\BTreeDlg.h
?????文件???30048348??2011-05-23?21:57??BTree\Debug\BTree.exe
?????文件?????319384??2011-05-23?21:57??BTree\Debug\BTree.ilk
?????文件??????14054??2011-05-21?18:27??BTree\Debug\BTree.obj
?????文件????5492708??2011-05-20?18:36??BTree\Debug\BTree.pch
?????文件?????443392??2011-05-23?21:57??BTree\Debug\BTree.pdb
?????文件???24924132??2011-05-21?19:08??BTree\Debug\BTree.res
?????文件??????53540??2011-05-23?21:57??BTree\Debug\BTreeDlg.obj
?????文件??????21558??2011-05-21?18:17??BTree\Debug\Dlg1.obj
?????文件??????21012??2011-05-21?19:09??BTree\Debug\Dlg2.obj
?????文件??????21546??2011-05-21?18:17??BTree\Debug\Dlg3.obj
?????文件??????22005??2011-05-21?18:17??BTree\Debug\Dlg4.obj
?????文件?????105621??2011-05-20?18:36??BTree\Debug\StdAfx.obj
?????文件?????222208??2011-05-23?21:57??BTree\Debug\vc60.idb
?????文件?????372736??2011-05-23?21:57??BTree\Debug\vc60.pdb
?????文件???????2820??2011-05-21?18:17??BTree\Dlg1.cpp
?????文件???????1293??2011-05-21?16:34??BTree\Dlg1.h
?????文件???????2745??2011-05-21?19:08??BTree\Dlg2.cpp
?????文件???????1293??2011-05-21?16:43??BTree\Dlg2.h
............此處省略22個文件信息
評論
共有 條評論