-
大小: 1.37MB文件類型: .rar金幣: 2下載: 1 次發布日期: 2023-09-02
- 語言: C/C++
- 標簽: C++??課程設計??源代碼??filesystem??
資源簡介
運行請注意:
1.配置文件和虛擬磁盤文件不存在時不要緊,程序會自動檢測重并重新創建
2.Config.ini為配置文件,可以在這里的[Config]項下設置磁盤大小和每塊的大小,[Status]項為用于程序查錯的狀態項,無須更改
3.Config.ini配置項說明:
DiskSize:磁盤大小(B)
BlockSize:磁盤每塊大小(B)
HeaderSize:文件系統大小(B)
BitMapSize:位圖大小(B)
4.本程序完成以下功能
A.創建文件
B.創建文件夾
C.打開
D.編輯
E.保存
F.刪除
G.復制
H.剪切
I.粘帖
J.格式化磁盤
K.多用戶
L.前進后退
M.人性化
實現以下命令:create mkdir open read write delete copy cut paste format login logout
5.本程序已設定兩件用戶,用戶名分別為jxxghp和root,其密碼也分別為jxxghp和root,程序自動選密碼

代碼片段和文件信息
//?FileSystem.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“FileSystem.h“
#include?“FileSystemDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CFileSystemApp
BEGIN_MESSAGE_MAP(CFileSystemApp?CWinApp)
//{{AFX_MSG_MAP(CFileSystemApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CFileSystemApp?construction
CFileSystemApp::CFileSystemApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CFileSystemApp?object
CFileSystemApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CFileSystemApp?initialization
BOOL?CFileSystemApp::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
CFileSystemDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????165??2008-07-02?23:02??FileSystem\Config.ini
?????文件??????10204??2000-04-04?13:29??FileSystem\FileSystem\ColorCtrl.h
?????文件?????159172??2008-07-02?23:00??FileSystem\FileSystem\FileSystem.aps
?????文件???????6201??2008-07-02?23:00??FileSystem\FileSystem\FileSystem.clw
?????文件???????2119??2008-06-06?19:48??FileSystem\FileSystem\FileSystem.cpp
?????文件???????5025??2008-06-27?12:54??FileSystem\FileSystem\FileSystem.dsp
?????文件????????528??2008-06-04?10:34??FileSystem\FileSystem\FileSystem.dsw
?????文件???????1362??2008-06-06?21:19??FileSystem\FileSystem\FileSystem.h
?????文件?????173056??2008-07-02?23:00??FileSystem\FileSystem\FileSystem.ncb
?????文件??????53760??2008-07-02?23:00??FileSystem\FileSystem\FileSystem.opt
?????文件????????991??2008-07-02?23:00??FileSystem\FileSystem\FileSystem.plg
?????文件?????????40??2008-06-28?00:48??FileSystem\FileSystem\FileSystem.positions
?????文件??????13995??2008-07-02?23:00??FileSystem\FileSystem\FileSystem.rc
?????文件??????38232??2008-06-28?21:49??FileSystem\FileSystem\FileSystemDlg.cpp
?????文件???????5179??2008-06-27?12:35??FileSystem\FileSystem\FileSystemDlg.h
?????文件???????5706??2000-04-01?19:19??FileSystem\FileSystem\FontCtrl.h
?????文件?????????22??2008-06-06?19:50??FileSystem\FileSystem\Functions.h
?????文件???????2569??2008-07-02?22:59??FileSystem\FileSystem\LoginDlg.cpp
?????文件???????1342??2008-07-02?22:57??FileSystem\FileSystem\LoginDlg.h
?????文件???????3863??2008-06-08?14:47??FileSystem\FileSystem\NewDlg.cpp
?????文件???????1383??2008-06-08?01:43??FileSystem\FileSystem\NewDlg.h
?????文件???????2352??2008-06-28?00:48??FileSystem\FileSystem\PropertyDlg.cpp
?????文件???????1304??2008-06-27?11:52??FileSystem\FileSystem\PropertyDlg.h
?????文件???????1000??2008-06-28?21:38??FileSystem\FileSystem\Public.cpp
?????文件???????1264??2008-06-28?21:39??FileSystem\FileSystem\Public.h
?????文件???????3651??2008-06-04?10:34??FileSystem\FileSystem\ReadMe.txt
?????文件???????1138??2008-06-27?12:52??FileSystem\FileSystem\RenameDlg.cpp
?????文件???????1219??2008-06-27?12:50??FileSystem\FileSystem\RenameDlg.h
?????文件?????106838??2006-08-16?01:14??FileSystem\FileSystem\res\FileSystem.ico
?????文件????????402??2008-06-04?10:34??FileSystem\FileSystem\res\FileSystem.rc2
............此處省略19個文件信息
評論
共有 條評論