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

正文內(nèi)容

操作系統(tǒng)課程設計1-其他專業(yè)(存儲版)

2025-02-28 11:45上一頁面

下一頁面
  

【正文】 cessfully.\n,fname)。 printf(\n\39。 } } } else { printf(\nError. \39。 } else { k=ExistD(username)。//獲取目錄編號 if (i=0) { if(ifopen[k][i].ifopen==1)//輸入的文件是打開的 { printf(\nError.\39。} else ifopen[k][i].openmode=3。 wgetchar=1。j++)/*列出已經(jīng)打開的文件 */ { if(ifopen[k][j].ifopen==1)//如果文件是打開的 printf(%15s,ufd[k]ufdfile[j].fname)。 closed successfully\n,fname)。 char str[255],str1[255],c。ifcount[k]。 if(n!=0) { printf(\nPlease input FileName:)。 strcat(str,str1)。\n39。 has been opened with WRITE ONLY mode. It isn\39。%s\39。 wgetchar=1。 n++。//從鍵盤獲取所要寫的文件 ltrim(rtrim(fname))。 fp_file=fopen(str,ab)。%s\39。 wgetchar=1。 wgetchar=1。jucount。 for(i=0。在具體的實現(xiàn)技術上,也有著很多獨到之處。從而對如何提高程序執(zhí)行效率的解決辦法掌握的不好。 【 參考文獻 】 計算機操作系統(tǒng)教程 (第三版 ). 張堯?qū)W 史美林 張高 計算機操作系統(tǒng) ,西安電子科技大學出版社,方敏主編 , 。 在設計過程中,在代碼的優(yōu)化的效率方面還是經(jīng)歷了幾番波折。 UNIX 系統(tǒng)中的文件系統(tǒng)是最讓人們感興趣的,也是最成功的一部分。 fclose(fp_ufd)。 if (fp_file!=NULL) fclose(fp_file)。%s\39。 has been opened with PROTECT mode. It isn\39。 wgetchar=0。 strcat(str,str1)。//沒有打開的文件 if(n!=0) { printf(\nPlease input FileName:)。ifcount[k]。 char str[255],str1[255],c。 wgetchar=1。 } else { printf(\nError.\39。 while(fscanf(fp_file,%c,amp。 strcat(str1,str)。 } printf(\n%d files openned.\n,n)。 k=ExistD(dirname)。 } } } void ReadF() /*Read File*/ { int i,k,n=0。//關閉文件 printf(\n \39。 for(j=0。%s\39。} else if(ufd[k]ufdfile[i].fmode==1) {ifopen[k][i].openmode=1。//獲取所要打開的文件名 ltrim(rtrim(fname))。 if (strcmp(strupr(dirname),strupr(username))!=0) /*在自己的目錄里才能打開 */ { printf(\ can only open in yourself dir.\n)。 is not modified.\n,fname)。 wgetchar=1。 printf(\n\39。 gets(fmode)。 } else { if(ufd[k]ufdfile[i].fmode==0) strcpy(str,read only)。 gets(fname)。 dose not exist.\n,fname)。 remove(str)。//獲取文件對應的物理文件名 fpaddrno[fpaddrno1]=0。%s\39。 } if (strcmp(strupr(dirname),strupr(username))!=0) /*無法刪除非自己目錄的文件 */ { printf(\ can only modify filemode in yourself dir.\n)。 } fprintf(fp_file,\n)。\39。iMAX。 for(i=0。 } else { printf(\nFail!No Disk Space. Please format your disk.\n)。 if(strcmp(strupr(a),Y)==0) { fp_file=fopen(str,wb+)。 strcat(str,.txt)。 strcpy(ufd[i]ufdfile[fcount[i]].fname,fname)。%s\39。 char fname[MAXNAME],str[50],str1[50],a[25]。 gets(dname)。iucount。 clrscr()。 } else { printf(\n\nC:\\dir\n)。 strcpy(sfpaddr,file)。ifcount[j]。\039。putchar(39。 else { if (j0) { j。*39。iMAX。fread(amp。 } else if(strcmp(strupr(a),N)==0) { loginsuc=0。 return。i++,fcount[j]++) { ifopen[j][i].ifopen=0。 strcat(str,)。 strcat(str,.txt)。 fp_mfd=fopen(c:\\osfile\\,ab)。 /*input new password,use 39。 ltrim(rtrim(a))。 SetPANo(0)。 for(i=0。ufd_lp,sizeof(OSUFD_LOGIN),1,fp_mfd)!=0。 InputPW(loginpw)。 fp_mfd=fopen(c:\\osfile\\,rb)。 } void LoginF() /*LOGIN FileSystem*/ { char loginame[MAXNAME],loginpw[9],logincpw[9],str[50]。 } else n。 } void help(void) { 操作系統(tǒng)課程設計報告 6 printf(\nThe Command List\n)。 case 11:CdF()。break。break。break。break。 else if(strcmp(choice,help)==0) choice1=20。 else if(strcmp(choice,attrib)==0) choice1=4。 if(loginsuc==1) /*Login Successfully*/ { while (1) { wgetchar=0。 fclose(fp_mfd)。 /*Whether FileName Exist,Existi,Not Exist0*/ int FindPANo()。 /*remove the trailing blanks.*/ char *ltrim(char *str)。 /*Delete File*/ void ModifyFM()。 /*record file physical address num*/ OSUFD_OPENMODE ifopen[MAXCHILD][MAXCHILD]。 /*the count of mfd39。 /*ufd name*/ char ufdpword[8]。2Read and Write(default)。 /*Write File*/ void QuitF()。 /*LOGIN FileSystem*/ void DirF()。 typedef struct /*the structure of OSUFD39。1Write Only。 首先應確定文件系統(tǒng)的數(shù)據(jù)結(jié)構(gòu):主目錄、子目錄及活動文件等。另外,為了簡便文件系統(tǒng)未考慮文件共享,文件系統(tǒng)安全以及管道文件與設備文件等特殊內(nèi)容。 /*file mode:0Read Only。 /*ufd own file*/ 操作系統(tǒng)課程設計報告 2 }OSUFD。 2 主要函數(shù) void LoginF()。 /*Read File*/ void WriteF()。1Write Only。LOGIN*/ { char ufdname[MAXNAME]。 int ucount=0。/*record current directory*/ int fpaddrno[MAX]。 /*Create File*/ void DeleteF()。 char *rtrim(char *str)。 /*write file*/ int ExistF(char *filename)。 /*remove the heading blanks.*/ if((fp_mfd=fopen(c:\\osfile\\,rb))==NULL) { fp_mfd=fopen(c:\\osfile\\,wb)。 /*user login*/ clrscr()。 else if(strcmp(choice,delete)==0) choice1=3。 else if(strcmp(choice,cd)==0) choice1=11。if(!wgetchar) getchar()。if(!wgetchar) getchar()。if (!wgetchar) getchar()。if (!wgetchar) getchar()。break。 } } } else printf(\nAccess denied.)。 break。 return str。 ltrim(rtrim(loginame))。 if (findout==1) /*user exist*/ { printf(Login Password:)。fread(amp。 fcount[j]=0。 ucount=j。 gets(a)。 InputPW(loginpw)。 strcpy(,loginpw)。 strcat(str,username)。j++) { ///////////////////////////////////// strcpy(str,c:\\osfile\\)。ufd[j]ufdfile[i],sizeof(OSFILE),1,fp_ufd)!=0。 loginsuc=1。 flag=0。 /////////////////////////////////////////////////////////////////// for(i=0。 /*for(i=1。 } void InputPW(char *password) /*input password,use 39。)。)。 } } password[j]=39。 for(i=0。 } ///////////////////////////////////////////////////////// itoa(ufd[j]ufdfile[i].fpaddr,str,10)。 } printf(\n
點擊復制文檔內(nèi)容
畢業(yè)設計相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1