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

正文內(nèi)容

操作系統(tǒng)課程設(shè)計(編輯修改稿)

2025-08-03 14:13 本頁面
 

【文章內(nèi)容簡介】 cmp(choice,cls)==0) choice1=10。 else if(strcmp(choice,cd)==0) choice1=11。 else if(strcmp(choice,help)==0) choice1=20。 else choice1=12。 switch(choice1) {case 1:DirF()。choiceend=1。break。 case 2:CreateF()。choiceend=1。if(!wgetchar) getchar()。break。 case 3:DeleteF()。choiceend=1。if(!wgetchar)getchar()。break。 case 4:ModifyFM()。choiceend=1。if(!wgetchar) getchar()。break。 case 5:choiceend=1。OpenF()。if (!wgetchar) getchar()。break。 case 6:choiceend=1。CloseF()。if (!wgetchar) getchar()。break。 case 7:choiceend=1。ReadF()。if (!wgetchar) getchar()。break。 case 8:choiceend=1。WriteF()。if (!wgetchar) getchar()。break。 case 9:printf(\nYou have exited this system.)。 QuitF()。exit(0)。break。 case 10:choiceend=1。clrscr()。break。 case 11:CdF()。choiceend=1。break。 case 20:help()。choiceend=1。break。 default:choiceend=0。 } }}else printf(\nAccess denied.)。}void help(void){printf(\nThe Command List\n)。printf(\nCd Attrib Creat Modify Read Open Cls Delete Exit Close\n)。}char *rtrim(char *str) /*remove the trailing blanks.*/{int n=strlen(str)1。 while(n=0) {if(*(str+n)!=39。 39。) {*(str+n+1)=39。\039。 break。 } else n。 } if (n0) str[0]=39。\039。 return str。}char *ltrim(char *str) /*remove the heading blanks.*/{char *rtrim(char *str)。 strrev(str)。 rtrim(str)。 strrev(str)。 return str。}void LoginF() /*LOGIN FileSystem*/{char loginame[MAXNAME],loginpw[9],logincpw[9],str[50]。 int i,j,flag=1。 char a[25]。 int findout。 /*login user not exist*/ char *rtrim(char *str)。 /*remove the trailing blanks.*/ char *ltrim(char *str)。 /*remove the heading blanks.*/ void InputPW(char *password)。 /*input password,use 39。*39。 replace*/ void SetPANo(int RorW)。 /*Set physical address num*/ while(1) {findout=0。 printf(\n\nLogin Name:)。 gets(loginame)。 ltrim(rtrim(loginame))。 fp_mfd=fopen(c:\\osfile\\,rb)。 for(i=0。fread(amp。ufd_lp,sizeof(OSUFD_LOGIN),1,fp_mfd)!=0。i++) if (strcmp(strupr(),strupr(loginame))==0) {findout=1。 strcpy(logincpw,)。 } fclose(fp_mfd)。 if (findout==1) /*user exist*/ {printf(Login Password:)。 InputPW(loginpw)。 /*input password,use 39。*39。 replace*/ if (strcmp(loginpw,logincpw)==0) {strcpy(username,strupr(loginame))。 strcpy(dirname,username)。 fp_mfd=fopen(c:\\osfile\\,rb)。 for(j=0。fread(amp。ufd_lp,sizeof(OSUFD_LOGIN),1,fp_mfd)!=0。j++) {strcpy(str,c:\\osfile\\)。 strcat(str,)。 ufd[j]=(OSUFD*)malloc(sizeof(OSUFD))。 strcpy(ufd[j]ufdname,strupr())。 fp_ufd=fopen(str,rb)。 fcount[j]=0。 for(i=0。fread(amp。ufd[j]ufdfile[i],sizeof(OSFILE),1,fp_ufd)!=0。i++,fcount[j]++) {ifopen[j][i].ifopen=0。 ifopen[j][i].openmode=4。} fclose(fp_ufd)。} fclose(fp_mfd)。 ucount=j。 SetPANo(0)。 printf(\n\nLogin successful! Wele to this FileSystem\n\n)。 loginsuc=1。 return。} else {printf(\n\n)。 flag=1。 while(flag) {printf(Login Failed! Password Error. Try Again(Y/N):)。 gets(a)。 ltrim(rtrim(a))。 if (strcmp(strupr(a),Y)==0) {loginsuc=0。flag=0。} else if(strcmp(strupr(a),N)==0){loginsuc=0。flag=0。return。} } } } else {printf(New Password(=8):)。 InputPW(loginpw)。 /*input new password,use 39。*39。 replace*/ printf(\nConfirm Password(=8):)。 /*input new password,use 39。*39。 replace*/ InputPW(logincpw)。 if (strcmp(loginpw,logincpw)==0) {strcpy(,strupr(loginame))。 strcpy(,loginpw)。 fp_mfd=fopen(c:\\osfile\\,ab)。 fwrite(amp。ufd_lp,sizeof(OSUFD_LOGIN),1,fp_mfd)。 fclose(fp_mfd)。 strcpy(username,strupr(loginame))。 strcpy(dirname,loginame)。 strcpy(str,c:\\osfile\\)。 strcat(str,username)。 if((fp_ufd=fopen(str,rb))==NULL) {fp_ufd=fopen(str,wb)。 fclose(fp_ufd)。 } fp_mfd=fopen(c:\\osfile\\,rb)。 for(j=0。fread(amp。ufd_lp,sizeof(OSUFD_LOGIN),1,fp_mfd)!=0。j++) {strcpy(str,c:\\osfile\\)。 strcat(str,)。 ufd[j]=(OSUFD*)malloc(sizeof(OSUFD))。 strcpy(ufd[j]ufdname,strupr())。 fp_ufd=fopen(str,rb)。 for(i=0。fread(amp。ufd[j]ufdfile[i],sizeof(OSFILE),1,fp_ufd)!=0。i++,fcount[j]++) {ifopen[j][i].ifopen=0。 ifopen[j][i].openmode=4。} fclose(fp_ufd)。} fclose(fp_mfd)。 ucount=j。 SetPANo(0)。 printf(\n\nLogin Successful! Wele to this System\n\n)。 loginsuc=1。 return。 } else {printf(\n\n)。 flag=1。 while(flag) {printf(Login Failed! Password Error. Try Again(Y/N):)。 gets(a)。 ltrim(rtrim(a))。 if (strcmp(strupr(a),Y)==0) {loginsuc=0。flag=0。} else if(strcmp(strupr(a),N)==0){loginsuc=0。flag=0。return。} } } } } }void SetPANo(int RorW) /*Set physical address num,0read,1write*/{int i,j。 if (RorW==0) {if((fp_file_p=fopen(c:\\osfile\\file\\file_p,rb))==NULL) {fp_file_p=fopen(c:\\osfile\\file\\file_p,wb)。 fclose(fp_file_p)。 } fp_file_p=fopen(c:\\osfile\\file\\file_p,rb)。 for(i=0。fread(amp。j,sizeof(int),1,fp_file_p)!=0。i++) fpaddrno[j]=1。 /*for(i=1。iMAX。i++) if ((i%13)==0) fpaddrno[i]=1。*/ } else {fp_file_p=fopen(c:\\osfile\\file\\file_p,wb)。 /*for(i=1。iMAX。i++) if((i%13)==0) fpaddrno[i]=0。*/ for(i=0。iMAX。i++) if (fpaddrno[i]==1) fwrite(amp。i,sizeof(int),1,fp_file_p)。 } fclose(fp_file_p)。}void InputPW(char *password) /*input password,use 39。*39。 replace*/{int j。 for(j=0。j=7。j++) {password[j]=getch()。 if ((int)(password[j])!=13) {if((int)(password[j])!=8) putchar(39。*39。)。 else {if (j0) {j。j。 putchar(39。\b39。)。putchar(39。 39。)。putchar(39。\b39。)。 } else j。 } } else {password[j]=39。\039。 break。 } } password[j]=39。\039。}void DirF() /*Dir FileSystem*/{int i,j,count=0。 char sfmode[25],sfpaddr[25],str[25]。 int ExistD(char *dirname)。 /*Whether DirName Exist,Existi,Not Exist0*/ clrscr()。 if (strcmp(strupr(ltrim(rtrim(di
點擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1