xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

  • 大小: 17KB
    文件類型: .cpp
    金幣: 1
    下載: 0 次
    發布日期: 2021-01-03
  • 語言: C/C++
  • 標簽: 杭電??

資源簡介

杭電 操作系統課程設計 簡單文件系統的實現 杭電 操作系統課程設計 簡單文件系統的實現 杭電 操作系統課程設計 簡單文件系統的實現

資源截圖

代碼片段和文件信息

#include?
#include?
#include?
#include?
using?namespace?std;

//1代表普通文件2代表目錄文件0表示空文件
#define?GENERAL?1
#define?DIRECTORY?2
#define?HXSH?0

struct?FCB
{
char?fname[16];?//文件名
char?type;????
int?size;????//文件大小
int?fatherBlockNum;????//當前的父目錄盤塊號
int?currentBlockNum;????//當前的盤塊

void?initialize()
{
strcpy(fname“\0“);
type?=?HXSH;
size?=0;
fatherBlockNum?=?currentBlockNum?=?0;
}
};?

/*常量設置*/
const?char*?FilePath?=?“C:\\myfiles“;
const?int?BlockSize?=?512;???????//盤塊大小
const?int?OPEN_MAX?=?5;??????????//能打開最多的文件數
const?int?BlockCount?=?128;???//盤塊數
const?int?DiskSize?=?BlockSize*BlockCount;????//磁盤大小
const?int?BlockFcbCount?=?BlockSize/sizeof(FCB);//目錄文件的最多FCB數

int?OpenFileCount?=?0;

struct?OPENLIST??

評論

共有 條評論