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

正文內(nèi)容

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

  

【正文】 )。 } else { printf(\nPlease input FileName:)。 if (strcmp(strupr(ltrim(rtrim(dirname))),)==0) /*無(wú)法刪除主目錄的文件 */ { printf(\ convert to ufd dir before delete.\n)。 return(length)。\n39。 while((c=getchar())!=39。 char c。 break。 } int FindPANo() /*find out physical address num*/ { int i。i++) if (strcmp(strupr(ufd[j]ufdfile[i].fname),strupr(filename))==0) { exist=1。 int exist=0。 } } else { printf(\nError. FileMode\39。%s\39。 flag=0。 ltrim(rtrim(a))。 fclose(fp_file)。 itoa(fpaddrno,str1,10)。 ufd[i]ufdfile[fcount[i]].fmode=atoi(fmode)。 if((strcmp(fmode,0)==0)||(strcmp(fmode,1)==0)||(strcmp(fmode,2)==0)||(strcmp(fmode,3)==0)) { fpaddrno=FindPANo()。 wgetchar=1。 ltrim(rtrim(fname))。 if (strcmp(strupr(dirname),strupr(username))!=0) { printf(\nError. You must create file in your own dir.\n)。 does not exist.\n,dname)。 if (ExistD(dname)=0) strcpy(dirname,strupr(dname))。 printf(\nPlease input DirName (cd..Previous dir。 break。 int exist=0。 } printf(%14s%18d%8s\n,ufd[i]ufdname,fcount[i],UFD)。(i!=0)) { printf(\nPress any key to continue...)。 for(i=0。 printf(%14s%16s%14d%10s%18s\n,ufd[j]ufdfile[i].fname,sfpaddr,ufd[j]ufdfile[i].flength,FILE,sfmode)。 if (ufd[j]ufdfile[i].fmode==0) strcpy(sfmode,Read Only)。 printf(\n%14s%16s%14s%10s%18s\n,FileName,FileAddress,FileLength,Type,FileMode)。amp。 j=ExistD(dirname)。 char sfmode[25],sfpaddr[25],str[25]。 break。)。 39。 putchar(39。*39。 for(j=0。 } fclose(fp_file_p)。*/ for(i=0。*/ } else { fp_file_p=fopen(c:\\osfile\\file\\,wb)。i++) fpaddrno[j]=1。 } fp_file_p=fopen(c:\\osfile\\file\\,rb)。 return。 if (strcmp(strupr(a),Y)==0) { loginsuc=0。 flag=1。 printf(\n\nLogin Successful! Wele to this System\n\n)。 } fclose(fp_ufd)。fread(amp。 ufd[j]=(OSUFD*)malloc(sizeof(OSUFD))。ufd_lp,sizeof(OSUFD_LOGIN),1,fp_mfd)!=0。 fclose(fp_ufd)。 //////////////////////////////////////////////////////// strcpy(str,c:\\osfile\\)。ufd_lp,sizeof(OSUFD_LOGIN),1,fp_mfd)。 if (strcmp(loginpw,logincpw)==0) { strcpy(,strupr(loginame))。 replace*/ printf(\nConfirm Password(=8):)。 } } } } else { printf(New Password(=8):)。 flag=0。 操作系統(tǒng)課程設(shè)計(jì)報(bào)告 8 while(flag) { printf(Login Failed! Password Error. Try Again(Y/N):)。 loginsuc=1。 } fclose(fp_mfd)。ufd[j]ufdfile[i],sizeof(OSFILE),1,fp_ufd)!=0。 fp_ufd=fopen(str,rb)。 strcat(str,)。 for(j=0。*39。 } fclose(fp_mfd)。fread(amp。 gets(loginame)。 char a[25]。 strrev(str)。\039。\039。 } char *rtrim(char *str) /*remove the trailing blanks.*/ { int n=strlen(str)1。 default:choiceend=0。break。choiceend=1。 QuitF()。choiceend=1。choiceend=1。choiceend=1。choiceend=1。choiceend=1。choiceend=1。choiceend=1。 switch(choice1) { case 1:DirF()。 else if(strcmp(choice,cls)==0) choice1=10。 else if(strcmp(choice,close)==0) choice1=6。 else if(strcmp(choice,create)==0) choice1=2。 else printf(Bad mand or file name.\nC:\\%s,strupr(username))。 /*clear screen*/ LoginF()。iMAX。 /*remove the trailing blanks.*/ char *ltrim(char *str)。 } void main() { int i,choice1。 /*Whether DirName Exist,Existi,Not Exist0*/ int WriteF1()。 /*input password,use 39。 /*Quit FileSystem*/ 操作系統(tǒng)課程設(shè)計(jì)報(bào)告 4 void help()。 /*Open File*/ void CloseF()。 /*Change Dir*/ void CreateF()。 /*whether getchar()*/ FILE *fp_mfd,*fp_ufd,*fp_file_p,*fp_file。s name22*/ char dirname[MAXNAME]。 /*the count of ufd39。 /*ufd and ufd own files*/ OSUFD_LOGIN ufd_lp。 typedef struct /*file open mode*/ { int ifopen。 typedef struct /*the structure of OSUFD39。 /*file name*/ } OSFILE。 /*file mode:0Read Only。 /*Change Dir*/ void help()。 /*Close File*/ void ReadF()。 /*Create File*/ void DeleteF()。 /*0read only,1write only,2read and write,3initial*/ }OSUFD_OPENMODE。 /*ufd name*/ char ufdpword[8]。 /*ufd name*/ OSFILE ufdfile[MAXCHILD]。 3Protect。 /*file length*/ int fmode。 用戶創(chuàng)建的文件,可以編號(hào)存儲(chǔ)于磁盤(pán)上。 ( 3)通過(guò)分對(duì)實(shí)際問(wèn)題的分析、設(shè)計(jì)、編程實(shí)現(xiàn), 提高學(xué)生實(shí)際 應(yīng)用、 編程的能力 …………………………………… .. 【 設(shè)計(jì)內(nèi)容 】 delete 刪除文件; open 打開(kāi)文件; close 關(guān)閉文件; write 寫(xiě)文件; ………………………………… . 【 實(shí)驗(yàn)環(huán)境 】 Windows7 系統(tǒng); Visual C++; 【 相關(guān)知識(shí)綜述 】 本文件系統(tǒng)采用兩級(jí)目錄,其中第一級(jí)對(duì)應(yīng)于用戶賬號(hào),第二級(jí)對(duì)應(yīng)于用戶帳號(hào)下的文件。 ( 2)結(jié)合數(shù)據(jù)結(jié)構(gòu)、程序設(shè)計(jì)、計(jì)算機(jī)原理等課程的知識(shí),設(shè)計(jì)一個(gè)二級(jí)文件系統(tǒng),進(jìn)一步理解操作系統(tǒng)。主目錄和子目錄都以文件的形式存放于 磁盤(pán),這樣便于查找和修改。 /*file physical address*/ int flength。2Read and Write。 typedef struct /*the structure of OSUFD 定義用戶文件目錄 */ { char ufdname[MAXNAME]。LOGIN 定義登陸 */ { char ufdname[MAXNAME]。 /*ifopen:0close,1open*/ int openmode。 /*Dir FileSystem*/ void CreateF()。 /*Open File*/ void CloseF()。 /*Quit FileSystem*/ void CdF()。 /*file length*/ int fmode。*/ char fname[MAXNAME]。 /*ufd own file*/ }OSUFD。 /*ufd password*/ } OSUFD_LOGIN。 OSUFD *ufd[MAXCHILD]。s ufds*/ int fcount[MAXCHILD]。 /*record login user39。 /*record file open/close*/ int wgetchar。 /*Dir FileSystem*/ void CdF()。 /*Modify FileMode*/ void OpenF()。 /*Write File*/ void QuitF()。 /*remove the heading blanks.*/ void InputPW(char *password)。 /*Set physical address num*/ int ExistD(char *dirname)。 /*find out physical address num*/ void clrscr() { system(cls)。 /*whether choice end*/ char *rtri
點(diǎn)擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計(jì)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1