資源簡介
VC實現一個簡單的圖書管理系統,基于借書,還書,基礎資料管理等功能。

代碼片段和文件信息
//?book.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“book.h“
#include?“MainFrm.h“
#include?“bookSet.h“
#include?“bookDoc.h“
#include?“bookView.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CBookApp
BEGIN_MESSAGE_MAP(CBookApp?CWinApp)
//{{AFX_MSG_MAP(CBookApp)
ON_COMMAND(ID_APP_ABOUT?OnAppAbout)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG_MAP
//?Standard?file?based?document?commands
ON_COMMAND(ID_FILE_NEW?CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN?CWinApp::OnFileOpen)
//?Standard?print?setup?command
ON_COMMAND(ID_FILE_PRINT_SETUP?CWinApp::OnFilePrintSetup)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CBookApp?construction
CBookApp::CBookApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CBookApp?object
CBookApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CBookApp?initialization
BOOL?CBookApp::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
//?Change?the?registry?key?under?which?our?settings?are?stored.
//?TODO:?You?should?modify?this?string?to?be?something?appropriate
//?such?as?the?name?of?your?company?or?organization.
SetRegistryKey(_T(“Local?AppWizard-Generated?Applications“));
LoadStdProfileSettings();??//?Load?standard?INI?file?options?(including?MRU)
//?Register?the?application‘s?document?templates.??Document?templates
//??serve?as?the?connection?between?documents?frame?windows?and?views.
CSingleDocTemplate*?pDocTemplate;
pDocTemplate?=?new?CSingleDocTemplate(
IDR_MAINframe
RUNTIME_CLASS(CBookDoc)
RUNTIME_CLASS(CMainframe)???????//?main?SDI?frame?window
RUNTIME_CLASS(CBookView));
AddDocTemplate(pDocTemplate);
//?Parse?command?line?for?standard?shell?commands?DDE?file?open
CCommandLineInfo?cmdInfo;
ParseCommandLine(cmdInfo);
//?Dispatch?commands?specified?on?the?command?line
if?(!ProcessShellCommand(cmdInfo))
return?FALSE;
//?The?one?and?only?window?has?been?initialized?so?show?and?update?it.
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow();
return?TRUE;
}
///
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
????.CA....?????31704??2010-08-01?00:09??一個簡單的圖書管理系統\book\book.aps
????.CA....??????3894??2010-08-01?00:09??一個簡單的圖書管理系統\book\book.clw
????.CA....??????4195??2008-05-19?21:42??一個簡單的圖書管理系統\book\book.cpp
????.CA....??????4766??2008-05-20?20:05??一個簡單的圖書管理系統\book\book.dsp
????.CA....???????514??2008-05-19?21:42??一個簡單的圖書管理系統\book\book.dsw
????.CA....??????1334??2008-05-19?21:42??一個簡單的圖書管理系統\book\book.h
????.CA....?????58368??2010-08-01?00:09??一個簡單的圖書管理系統\book\book.ncb
????.CA....?????55808??2010-08-01?00:09??一個簡單的圖書管理系統\book\book.opt
????.CA....??????1847??2008-05-20?20:23??一個簡單的圖書管理系統\book\book.plg
????.CA....?????14025??2008-05-20?20:15??一個簡單的圖書管理系統\book\book.rc
????.CA....???????897??2008-05-20?20:52??一個簡單的圖書管理系統\book\book.sln
????.CA..H.??????8704??2008-05-20?20:52??一個簡單的圖書管理系統\book\book.suo
????.CA....??????8109??2008-05-20?20:52??一個簡單的圖書管理系統\book\book.vcproj
????.CA....??????1724??2008-05-19?21:42??一個簡單的圖書管理系統\book\bookDoc.cpp
????.CA....??????1497??2008-05-19?21:42??一個簡單的圖書管理系統\book\bookDoc.h
????.CA....??????1470??2008-05-20?16:56??一個簡單的圖書管理系統\book\bookSet.cpp
????.CA....??????1313??2008-05-20?16:51??一個簡單的圖書管理系統\book\bookSet.h
????.CA....??????5480??2008-05-20?20:18??一個簡單的圖書管理系統\book\bookView.cpp
????.CA....??????2265??2008-05-20?20:16??一個簡單的圖書管理系統\book\bookView.h
????.CA....??????2414??2008-05-20?20:15??一個簡單的圖書管理系統\book\MainFrm.cpp
????.CA....??????1473??2008-05-20?20:10??一個簡單的圖書管理系統\book\MainFrm.h
????.CA....??????4447??2008-05-19?21:42??一個簡單的圖書管理系統\book\ReadMe.txt
????.CA....??????1078??2008-05-19?21:42??一個簡單的圖書管理系統\book\res\book.ico
????.CA....???????396??2008-05-19?21:42??一個簡單的圖書管理系統\book\res\book.rc2
????.CA....??????1078??2008-05-19?21:42??一個簡單的圖書管理系統\book\res\bookDoc.ico
????.CA....??????1558??2008-05-19?21:42??一個簡單的圖書管理系統\book\res\Toolbar.bmp
????.CA....??????1097??2008-05-20?20:15??一個簡單的圖書管理系統\book\resource.h
????.CA....??????1001??2008-05-20?20:09??一個簡單的圖書管理系統\book\SearchDialog.cpp
????.CA....??????1254??2008-05-20?20:09??一個簡單的圖書管理系統\book\SearchDialog.h
????.CA....??????1033??2010-08-01?00:09??一個簡單的圖書管理系統\book\SearchDlg.cpp
............此處省略46個文件信息
- 上一篇:數值計算課后習題答案
- 下一篇:htop-2.0.2.tar.gz
評論
共有 條評論