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

正文內(nèi)容

操作系統(tǒng)課程設(shè)計(jì)1-其他專業(yè)(文件)

 

【正文】 25]。 } else { printf(\nPlease input FileName:)。%s\39。 gets(fmode)。 strcpy(ufd[i]ufdfile[fcount[i]].fname,fname)。 ifopen[i][fcount[i]].openmode=4。 strcat(str,.txt)。 while(flag) { printf(Input text now(Y/N):)。 if(strcmp(strupr(a),Y)==0) { fp_file=fopen(str,wb+)。 wgetchar=1。 } else { printf(\nFail!No Disk Space. Please format your disk.\n)。 wgetchar=1。 for(i=0。 } if (exist) return(i)。iMAX。 else return(1)。\39。) { fprintf(fp_file,%c,c)。 } fprintf(fp_file,\n)。 int i,k,j。 } if (strcmp(strupr(dirname),strupr(username))!=0) /*無(wú)法刪除非自己目錄的文件 */ { printf(\ can only modify filemode in yourself dir.\n)。//從鍵盤獲取所要?jiǎng)h除的文件名 ltrim(rtrim(fname))。%s\39。%s\39。//獲取文件對(duì)應(yīng)的物理文件名 fpaddrno[fpaddrno1]=0。//從被刪除的文件號(hào)開(kāi)始,數(shù)組值全部前移一個(gè) } strcpy(str,c:\\osfile\\file\\file)。 remove(str)。is deleted successfully.\n,fname)。 dose not exist.\n,fname)。 char fmode[25]。 gets(fname)。 if(ifopen[k][i].ifopen==1) { printf(\nError.\39。 } else { if(ufd[k]ufdfile[i].fmode==0) strcpy(str,read only)。 printf(\39。 gets(fmode)。%s\39。 printf(\n\39。 } else if(strcmp(fmode,2)==0) 操作系統(tǒng)課程設(shè)計(jì)報(bào)告 19 { ufd[k]ufdfile[i].fmode=2。 wgetchar=1。 has been modified to FORBID mode successfully.\n,fname)。 is not modified.\n,fname)。 dose not exist.\n,fname)。 if (strcmp(strupr(dirname),strupr(username))!=0) /*在自己的目錄里才能打開(kāi) */ { printf(\ can only open in yourself dir.\n)。jfcount[k]。//獲取所要打開(kāi)的文件名 ltrim(rtrim(fname))。 is in open status.\n,fname)。} else if(ufd[k]ufdfile[i].fmode==1) {ifopen[k][i].openmode=1。%s\39。%s\39。 int i,k,j。 for(j=0。 gets(fname)。//關(guān)閉文件 printf(\n \39。 } else//所要關(guān)閉的文件不存在 { printf(\nError. \39。 } } } void ReadF() /*Read File*/ { int i,k,n=0。 wgetchar=1。 k=ExistD(dirname)。 n++。 } printf(\n%d files openned.\n,n)。 ltrim(rtrim(fname))。 strcat(str1,str)。 fp_file=fopen(str,rb)。 while(fscanf(fp_file,%c,amp。 else printf(%c,c)。 } else { printf(\nError.\39。 操作系統(tǒng)課程設(shè)計(jì)報(bào)告 23 wgetchar=1。 wgetchar=1。 wgetchar=1。 char str[255],str1[255],c。 } printf(\nCaution:Open file first\n)。ifcount[k]。amp。//沒(méi)有打開(kāi)的文件 if(n!=0) { printf(\nPlease input FileName:)。//獲取文件編號(hào) if(i=0) { if(ifopen[k][i].ifopen==1)//如果文件是打開(kāi)的 { if((ifopen[k][i].openmode==1) ||(ifopen[k][i].openmode==2))//文件是只寫,或者是可讀可寫的 { itoa(ufd[k]ufdfile[i].fpaddr,str,10)。 strcat(str,str1)。 ufd[k]ufdfile[i].flength=ufd[k]ufdfile[i].flength+length。 wgetchar=0。t write.\n,fname)。 has been opened with PROTECT mode. It isn\39。%s\39。%s\39。 char str[50]。 if (fp_file!=NULL) fclose(fp_file)。 strcat(str,ufd[j]ufdname)。 fclose(fp_ufd)。i++) fwrite(amp。 UNIX 系統(tǒng)中的文件系統(tǒng)是最讓人們感興趣的,也是最成功的一部分。對(duì)我而言,難度不小。 在設(shè)計(jì)過(guò)程中,在代碼的優(yōu)化的效率方面還是經(jīng)歷了幾番波折。學(xué)習(xí)的多,而訓(xùn)練的少。 【 參考文獻(xiàn) 】 計(jì)算機(jī)操作系統(tǒng)教程 (第三版 ). 張堯?qū)W 史美林 張高 計(jì)算機(jī)操作系統(tǒng) ,西安電子科技大學(xué)出版社,方敏主編 , 。什么事都是熟 能生巧,在今后的學(xué)習(xí)生活中,自己要更多的進(jìn)行程序的讀寫和實(shí)際在計(jì)算機(jī)上的編寫。從而對(duì)如何提高程序執(zhí)行效率的解決辦法掌握的不好。但通過(guò)幾天反復(fù)的讀代碼,詢問(wèn)同學(xué),我終于慢慢的明白了,再看幾次程序,已經(jīng)知道他的思路和邏輯了。在具體的實(shí)現(xiàn)技術(shù)上,也有著很多獨(dú)到之處。 fclose(fp_ufd)。 for(i=0。 strcat(str,.txt)。jucount。 if (fp_mfd!=NULL) fclose(fp_mfd)。 wgetchar=1。 wgetchar=1。 wgetchar=1。 } else//文件是保護(hù)的 { printf(\nError.\39。%s\39。 printf(\n\nYou have write file successfully!!)。 fp_file=fopen(str,ab)。 strcat(str1,str)。//從鍵盤獲取所要寫的文件 ltrim(rtrim(fname))。 } printf(\n%d files openned.\n,n)。 n++。 k=ExistD(dirname)。 wgetchar=1。 int length。%s\39。%s\39。 has been opened with WRITE ONLY mode. It isn\39。 fclose(fp_file)。\n39。 printf(\nThe text is:\n\n)。 strcat(str,str1)。 if(i=0) { if(ifopen[k][i].ifopen==1) { if((ifopen[k][i].openmode==0) ||(ifopen[k][i].openmode==2)) { itoa(ufd[k]ufdfile[i].fpaddr,str,10)。 if(n!=0) { printf(\nPlease input FileName:)。amp。ifcount[k]。 } printf(\nCaution:Open file first\n)。 char str[255],str1[255],c。 dose not exist.\n,fname)。 closed successfully\n,fname)。 i=ExistF(fname)。j++)/*列出已經(jīng)打開(kāi)的文件 */ { if(ifopen[k][j].ifopen==1)//如果文件是打開(kāi)的 printf(%15s,ufd[k]ufdfile[j].fname)。 wgetchar=1。 wgetchar=1。 wgetchar=1。} else ifopen[k][i].openmode=3。 } else { ifopen[k][i].ifopen=1。//獲取目錄編號(hào) if (i=0) { if(ifopen[k][i].ifopen==1)//輸入的文件是打開(kāi)的 { printf(\nError.\39。 操作系統(tǒng)課程設(shè)計(jì)報(bào)告 20 } printf(\nPlease input FileName:)。 } else { k=ExistD(username)。 } } } void OpenF() /*Open File*/ { char fname[MAXNAME]。 } } } else { printf(\nError. \39。 } else { printf(\nError.\39。 printf(\n\39。%s\39。 has been modified to WRITE ONLY mode successfully.\n,fname)。 wgetchar=1。 if(strcmp(fmode,0)==0) { ufd[k]ufdfile[i].fmode=0。 filemode is %s.\n,fname,strupr(str))。 else if(ufd[k]ufdfile[i].fmode==2) strcpy(str,read and write)。 is in open status. Close it before modify.\n,fname)。 i=ExistF(fname)。 wgetchar=1。 } } } void ModifyFM() /*Modify FileMode*/ { char fname[MAXNAME],str[50]。 } } } else//所要?jiǎng)h除的文件不存在 { printf(\nError. \39。//用戶文件數(shù)量少 1 printf(\n \39。//整數(shù)轉(zhuǎn)化成字符串 strcat(str,str1)。jfcount[k]。 wgetchar=1。 wgetchar=1。//獲取文件編號(hào) if (i=0) { k=ExistD(username
點(diǎn)擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計(jì)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1