freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

操作系統(tǒng)文件管理實(shí)驗(yàn)-展示頁

2024-08-25 03:23本頁面
  

【正文】 istD(username)。elsewgetchar=1。if (strcmp(strupr(dirname),strupr(username))!=0)int ExistD(char *dirname)。 int ExistF(char *filename)。/*remove the trailing blanks.*/ char *rtrim(char *str)。 return(length)。fclose(fp_file)。} fprintf(fp_file,\n)。) length++。 if (c!=39。{fprintf(fp_file,%c,c)。39。\39。}int WriteF1()} if (fpaddrno[i]==0) {fpaddrno[i]=1。i++)for(i=0。/*find out physical address num*/{int i。}int FindPANo() }ifcount[j]。 }}}int ExistF(char *filename) }s Range is 03\n)。wgetchar=1。 else%s\39。wgetchar=1。 } flag=0。{fp_file=fopen(str,wb+)。 if(strcmp(strupr(a),Y)==0) ufd[i]ufdfile[fcount[i]1].flength=0。 ltrim(rtrim(a))。 gets(a)。 {printf(Input text now(Y/N):)。 while(flag) fclose(fp_file)。 strcat(str,str1)。 strcpy(str,c:\\osfile\\file\\file)。 ifopen[i][fcount[i]].ifopen=0。 ufd[i]ufdfile[fcount[i]].fpaddr=fpaddrno。 {i=ExistD(username)。wgetchar=1。 has already existed.\n,fname)。 {printf(\nError. Name \39。if (ExistF(fname)=0)ltrim(rtrim(fname))。gets(fname)。{ printf(\nPlease input FileName:)。}{printf(\nError. You must create file in your own dir.\n)。/*Whether FileName Exist,Existi,Not Exist0*//*write file*/ /*find out physical address num*/ int FindPANo()。char fmode[25]。char fname[MAXNAME],str[50],str1[50],strtext[255],a[25]。/*Create File*/{int fpaddrno,flag=1,i。 /*the largest length of mfdname,ufdname,filename*/define MAXCHILD 50 /*the largest child*/define MAX (MAXCHILD*MAXCHILD) /*the size of fpaddrno*/void CreateF() 讀文件WRITE 關(guān)閉文件READ◆實(shí)驗(yàn)內(nèi)容:為DOS系統(tǒng)設(shè)計(jì)一個(gè)簡(jiǎn)單的二級(jí)文件系統(tǒng)。實(shí)驗(yàn)五 文件管理實(shí)驗(yàn)◆實(shí)驗(yàn)名稱:文件管理實(shí)驗(yàn)◆儀器、設(shè)備:計(jì)算機(jī)◆參考資料:操作系統(tǒng)實(shí)驗(yàn)指導(dǎo)書◆實(shí)驗(yàn)?zāi)康模涸O(shè)計(jì)一個(gè) n個(gè)用戶的文件系統(tǒng),用戶在一次運(yùn)行中只能打開一個(gè)文件,有Create、delete、open、close、read、write等命令。要求可以實(shí)現(xiàn)下列幾條命令CREATE 創(chuàng)建文件DELETE 刪除文件OPEN 打開文件CLOSE 寫文件◆實(shí)驗(yàn)原理、數(shù)據(jù)(程序)記錄:define MAXNAME 25 int WriteF1()。int ExistF(char *filename)。 int ExistD(char *dirname)。if (strcmp(strupr(dirname),strupr(username))!=0)wgetchar=1。else%s\39。 } else {printf(Please input FileMode(0Read Only, 1Write Only, 2Read and Write, 3Protect):)。gets(fmode)。ltrim(rtrim(fmode))。if((strcmp(fmode,0)==0)||(strcmp(fmode,1)==0)||(strcmp(fmode,2)==0)||(strcmp(fmode,3)==0)) {fpaddrno=FindPANo()。 if (fpaddrno=0) strcpy(ufd[i]ufdfile[fcount[i]].fname,fname)。 ufd[i]ufdfile[fcount[i]].fmode=atoi(fmode)。 ifopen[i][fcount[i]].openmode=4。 itoa(fpaddrno,str1,10)。 fp_file=fopen(str,wb)。 fcount[i]++。 ufd[i]ufdfile[fcoun
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1