91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 3KB
    文件類型: .rar
    金幣: 1
    下載: 0 次
    發(fā)布日期: 2021-01-03
  • 語言: 其他
  • 標簽: 操作系統(tǒng)??

資源簡介

一個簡單的文件管理系統(tǒng),實現(xiàn)文件的創(chuàng)建,讀,寫,刪除等功能。

資源截圖

代碼片段和文件信息


#include?“stdio.h“?
#include?“stdlib.h“?
#include?“string.h“

//主文件結(jié)構(gòu)體
struct?MasterFile{???????
?char?username[20];??????//用戶名
?char?password[20];?????//用戶名密碼
?char?flag;?????????????//標志
?struct?MasterFile?*next;
};
//用戶文件結(jié)構(gòu)體
struct?UserFile{??????
?int?fnum;????????//文件編號
?char?fname[20];??//文件名
?int?flength;?????//文件長度
?char?flag;???????//標志
?char?fpw[20];???//文件保護碼
?struct?UserFile?*link;
};
//全局變量
int?shoudsave;??//存儲標記
int?usingnum;???//當前用戶標記
struct?MasterFile?MFD[20];???//主目錄
struct?UserFile?UFD[20][20];??//用戶目錄


//尋找主目錄空閑區(qū)
struct?MasterFile*MoveMFDToLast(){
?
?for(int?i=0;i<20;i++){
??if(MFD[i].flag==0)
???usingnum=i;
???return?&MFD[i];
?}
?return?NULL;
}
//查找用戶
struct?MasterFile*SearchMFD(char?str[]){
?for(int?i=0;i<20;i++){
??if(strcmp

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????8775??2009-06-25?11:35??caozuoxit.cpp

-----------?---------??----------?-----??----

?????????????????8775????????????????????1


評論

共有 條評論

相關資源