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

正文內(nèi)容

操作系統(tǒng)課程設(shè)計(jì)-二級(jí)文檔管理系統(tǒng)-資料下載頁(yè)

2025-04-07 21:38本頁(yè)面
  

【正文】 tDir[i]=0。 } strcpy(currentDir,rootFolder_Dir)。 strcat(currentDir,/)。 strcat(currentDir,username)。 _RootDir *q。 q=(_RootDir *)malloc(sizeof(_RootDir))。 strcpy(q_Dir,currentDir)。 qfatherDir=rootFolder。 rootFolder=q。 /* DIR *dir。 dir=opendir(currentDir)。 if(dir) { strcpy(tempDirOne,currentDir)。 strcat(tempDirOne,/)。 strcat(tempDirOne,)。 strcpy(tempDirTwo,currentDir)。 strcat(tempDirTwo,/)。 strcat(tempDirTwo,)。 FILE *filep。 filep = fopen(tempDirOne,w)。 fclose(filep)。 FILE *fp。 fp = fopen(tempDirTwo,w)。 fclose(fp)。 } */ TraverseFolder(currentDir)。 }}int login(){ int loginSuccess=0。 int i。 int userExist=0。 char userName[20],userPwd[20]。 char c。 int isEq。 setbuf(stdin,NULL)。//清空緩存 printf(Please input user Name: )。 for(i=0。i20,c=getchar()。i++) { if(c==39。\n39。) { userName[i]=0。 break。 } else { userName[i]=c。 } } _UserMess *userp。 userp=firstUser。 while(userpnextUser != NULL) { if(strcmp(userp_UserName,userName)==0) { userExist=1。 break。 } userp = userpnextUser。 } if(userExist==0) { printf(\n user not exist!please registe!\n)。 return。 } else if(userExist==1) { setbuf(stdin,NULL)。 printf(Please input user password:)。 for(i=0。i20,c=getchar()。i++) { if(c==39。\n39。) { userPwd[i]=0。 //Important break。 } else { userPwd[i]=c。 } } isEq =strcmp(userp_UserPwd,userPwd)。 if(isEq == 0) { printf(\nlogin success!\n)。 loginSuccess=1。 strcpy(_user,userName)。 for(i=0。i255。i++) { currentDir[i]=0。 } strcpy(currentDir,rootFolder_Dir)。 strcat(currentDir,/)。 strcat(currentDir,userName)。 _RootDir *q。 q=(_RootDir *)malloc(sizeof(_RootDir))。 strcpy(q_Dir,currentDir)。 qfatherDir=rootFolder。 rootFolder=q。 } else { printf(password error!\n)。 return 0。 } } TraverseFolder(currentDir)。 return loginSuccess。}void init(){ rootFolder=(_RootDir *)malloc(sizeof(_RootDir))。 strcpy(rootFolder_Dir,/home/liuhao/myfiles/os)。 rootFolderfatherDir=NULL。 firstUser =(_UserMess *)malloc(sizeof(_UserMess))。 firstUsernextUser = NULL。 TraverseFolder(rootFolder_Dir)。}int ReadUserMess(){ int i,j,k,userCount。 i=j=k=userCount=0。 char userID[20]。 char userPwd[20]。 char ch。 FILE *fp。 fp = fopen(,a)。 if(fp==NULL) { printf(System has no Users!please Regist.\n)。 } else { _UserMess *p,*q。 p=firstUser。 pnextUser=NULL。 FILE *filep。 filep = fopen(,r)。 ch = fgetc(filep)。 while(ch!=EOF) { if(ch==39。 39。amp。amp。 j==0) { strcpy(p_UserName,userID)。 j=1。 } else if(ch==39。 39。 amp。amp。 j==1) { strcpy(p_UserPwd,userPwd)。 j=0。 i=0。 k=0。 q=(_UserMess *)malloc(sizeof(_UserMess))。 qnextUser=NULL。 pnextUser =q。 p=q。 userCount++。 } else if(ch != 39。 39。 amp。amp。 j == 0) { userID[i]=ch。 i++。 } else if(ch!= 39。 39。 amp。amp。 j ==1) { userPwd[k] = ch。 k++。 } ch = fgetc(filep)。 } fclose(filep)。 } return userCount。 }六、總結(jié)在設(shè)計(jì)的過(guò)程中,我查詢了不少相關(guān)資料,不斷地發(fā)現(xiàn)問(wèn)題、提出問(wèn)題、解決問(wèn)題。用C做程序開發(fā)語(yǔ)言,讓我重新認(rèn)識(shí)了C的基礎(chǔ),在新語(yǔ)言不斷出現(xiàn)并發(fā)展迅速的今天,重新體會(huì)到C的基礎(chǔ)性、重要性,以及面對(duì)過(guò)程,面對(duì)函數(shù)式的編程方式。在對(duì)自己所編寫的源程序段的糾錯(cuò)的過(guò)程中,使我更好的理解了操作系統(tǒng)中文件系統(tǒng)的理論知識(shí),同時(shí)在編程時(shí)用到了模塊化的設(shè)計(jì)思想,這種編程方法可以使我們的編程更簡(jiǎn)單,可以使我們的查錯(cuò)與糾錯(cuò)變得更加方便。通過(guò)這次課程設(shè)計(jì)使我懂得了理論與實(shí)際相結(jié)合是很重要的,只有理論知識(shí)是遠(yuǎn)遠(yuǎn)不夠的,只有把所學(xué)的理論知識(shí)與實(shí)踐相結(jié)合起來(lái),從理論中得出結(jié)論,才能真正為社會(huì)服務(wù),從而提高自己的實(shí)際動(dòng)手能力和獨(dú)立思考的能力。在設(shè)計(jì)的過(guò)程中遇到問(wèn)題,這畢竟獨(dú)立做的,難免會(huì)遇到過(guò)各種各樣的問(wèn)題,同時(shí)在設(shè)計(jì)的過(guò)程中發(fā)現(xiàn)了自己的不足之處,對(duì)以前所學(xué)過(guò)的知識(shí)理解得不夠深刻,掌握得不夠牢固,比如說(shuō)結(jié)構(gòu)體……通過(guò)這次課程設(shè)計(jì)之后,一定把以前所學(xué)過(guò)的知識(shí)重新溫故??偟膩?lái)說(shuō)通過(guò)這次的設(shè)計(jì)學(xué)習(xí)使我學(xué)到了很多在平時(shí)的學(xué)習(xí)中學(xué)不到的很多東西,對(duì)操作系統(tǒng)有了更深一層的了解,同時(shí)也提高了C語(yǔ)言的能力,由于時(shí)間以及個(gè)人知識(shí)的問(wèn)題,因此有很多的地方還需要改進(jìn)。在以后的學(xué)習(xí)中還要更加
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1