資源簡介
個人寫的動態分區存儲管理內存的分配與回收,源程序代碼

代碼片段和文件信息
//?2.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“2.h“
#include?“2Dlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMy2App
BEGIN_MESSAGE_MAP(CMy2App?CWinApp)
//{{AFX_MSG_MAP(CMy2App)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CMy2App?construction
CMy2App::CMy2App()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CMy2App?object
CMy2App?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CMy2App?initialization
BOOL?CMy2App::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
CMy2Dlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????23920??2011-05-09?22:48??內存存儲管理2\2.aps
?????文件???????2415??2011-05-09?22:49??內存存儲管理2\2.clw
?????文件???????2015??2011-05-03?14:54??內存存儲管理2\2.cpp
?????文件???????4506??2011-05-04?23:13??內存存儲管理2\2.dsp
?????文件????????525??2011-05-03?16:15??內存存儲管理2\2.dsw
?????文件???????1279??2011-05-03?14:54??內存存儲管理2\2.h
?????文件?????181248??2011-05-09?22:50??內存存儲管理2\2.ncb
?????文件???????1565??2011-05-09?22:49??內存存儲管理2\2.plg
?????文件???????7678??2011-05-09?22:47??內存存儲管理2\2.rc
?????文件???????9150??2011-05-04?23:38??內存存儲管理2\2Dlg.cpp
?????文件???????1567??2011-05-04?23:31??內存存儲管理2\2Dlg.h
?????文件????????208??2011-05-04?11:46??內存存儲管理2\fun.h
?????文件????????203??2011-05-04?10:28??內存存儲管理2\function.h
?????文件???????3495??2011-05-03?14:54??內存存儲管理2\ReadMe.txt
?????文件???????1934??2011-05-09?22:47??內存存儲管理2\recover.cpp
?????文件???????1259??2011-05-09?22:47??內存存儲管理2\recover.h
?????文件????????972??2011-05-03?19:34??內存存儲管理2\request.cpp
?????文件???????1206??2011-05-03?19:34??內存存儲管理2\request.h
?????文件???????1277??2011-05-04?23:45??內存存儲管理2\resource.h
?????文件????????203??2011-05-03?14:54??內存存儲管理2\StdAfx.cpp
?????文件???????1054??2011-05-03?14:54??內存存儲管理2\StdAfx.h
?????文件??????51712??2011-05-09?22:50??內存存儲管理2\2.opt
?????文件???????4920??2011-05-09?22:48??內存存儲管理2\Debug\2.res
?????文件?????246784??2011-05-09?22:50??內存存儲管理2\Debug\vc60.idb
?????文件????5507044??2011-05-09?22:49??內存存儲管理2\Debug\2.pch
?????文件?????446464??2011-05-09?22:49??內存存儲管理2\Debug\vc60.pdb
?????文件?????105425??2011-05-09?22:49??內存存儲管理2\Debug\StdAfx.obj
?????文件??????29185??2011-05-09?22:49??內存存儲管理2\Debug\recover.obj
?????文件??????12534??2011-05-09?22:49??內存存儲管理2\Debug\request.obj
?????文件??????46317??2011-05-09?22:49??內存存儲管理2\Debug\2Dlg.obj
............此處省略13個文件信息
- 上一篇:電動車蹺蹺板程序
- 下一篇:visual C++ 2010 學習版-簡體中文
評論
共有 條評論