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

正文內(nèi)容

計(jì)算機(jī)操作系統(tǒng)課程設(shè)計(jì)報(bào)告書-資料下載頁

2025-05-14 03:25本頁面
  

【正文】 turn 4。 } fseek(myfile,256, 1)。 if ( fread(amp。,4,1,myfile) == 0)//讀取下一個數(shù)據(jù)塊地址 { cout2endl。 fclose(myfile)。 return 4。 } } if( == old_list_address )//這個文件的目錄是首目錄 { fseek(myfile,myaddress+44,0)。 if( fwrite(amp。,4,1,myfile) == 0) { cout3endl。 fclose(myfile)。 return 4。 } fseek(myfile,0)。 if( fwrite(amp。,4,1,myfile) == 0)//,但是賦值麻煩,直接用file的。反正數(shù)據(jù)結(jié)構(gòu)一樣 { cout6endl。 fclose(myfile)。 return 4。 } listaddress = 。 } else { fseek(myfile,old_list_address+40,0)。//上一個目錄的指向鏈接處 if( fwrite(amp。,4,1,myfile) == 0) { cout5endl。 fclose(myfile)。 return 4。 } fseek(myfile,0)。 if( fwrite(amp。,4,1,myfile) == 0)//,但是賦值麻煩,直接用file的。反正數(shù)據(jù)結(jié)構(gòu)一樣 { cout6endl。 fclose(myfile)。 return 4。 } } fclose(myfile)。 return 1。}int MUser::revampFile(char filename[20])//修改文件{ s_list ms_list。 s_file ms_file。 int x=0。 char new_name[20] = {39。\0 39。}。 int isfind = 0 。 myfile=fopen(,r+)。 if (myfile == NULL) { cout讀取磁盤失?。ndl。 return 1。 } = listaddress。 for (。 != 0 。 )//讀取文件的名字并比較 { fseek(myfile, , 0)。 if ( fread(amp。ms_list,sizeof(ms_list),1,myfile) == 0) { cout循環(huán)讀取目錄失敗,無法讀取!endl。 fclose(myfile)。 return 2。 } if ( isSame(,filename) == 1) { isfind = 1。 cout輸入內(nèi)容:endl。 fseek(myfile,+4,0)。 char s[100]。 cins。 for(x=0。x100。x++) { if(s[x]==0) { break。 } } if(x) return 5。 if( fwrite(amp。s,100,1,myfile) == 0 ) { fclose(myfile)。 return 4。 } fclose(myfile)。 break。 } } if ( isfind == 0)//找不到指定的文件 { fclose(myfile)。 return 2。 } return 1。}int MUser::mydir()//列出當(dāng)前目錄的所有文件(夾){ int i=0。 s_list ms_list。 if (listaddress == 0) { lastaddress = 0。 cout此用戶沒有創(chuàng)建文件,目錄為空!endl。 return 0。 } else { cout文件名\t\t\t大小\t是否鎖定\t物理地址endl。 } myfile=fopen(,r)。 if (myfile == NULL) { cout讀取磁盤失敗!endl。 return 1。 } = listaddress。//為進(jìn)入循環(huán)做準(zhǔn)備 fseek(myfile,48*5 , 0)。 for (。 != 0 。 )//循環(huán)讀取目錄 { lastaddress = 。 fseek(myfile, , 0)。 if ( fread(amp。ms_list,sizeof(ms_list),1,myfile) == 0)//讀取目錄 { cout循環(huán)讀取目錄失敗,無法讀?。ndl。 fclose(myfile)。 return 2。 } for( i=0 。 [i] != 39。\039。 amp。amp。 i=19 。 i++) { //僅僅只為計(jì)數(shù),方便規(guī)范輸出 } if( i =7 )//規(guī)范輸出 { cout\t\t\t。 } else { if( i= 15) { cout\t\t。 } else { cout\t。 } } if( == 1)//是否鎖定 { cout\t N\t\tendl。 } else { cout\t Y\t\tendl。 } } fclose(myfile)。 return 1。}int MUser::viewFile(char filename[20])//查看文件{ s_list ms_list。 s_file ms_file。 int isfind = 0 。 myfile=fopen(,r)。 if (myfile == NULL) { cout讀取磁盤失??!endl。 return 1。 } = listaddress。 for (。 != 0 。 ) { fseek(myfile, , 0)。 if ( fread(amp。ms_list,sizeof(ms_list),1,myfile) == 0)//讀取目錄 { cout循環(huán)讀取目錄失敗,無法讀??!endl。 fclose(myfile)。 return 2。 } if ( isSame(,filename) == 1) { isfind = 1。 break。 } } if ( isfind == 0)//沒有找到文件 { fclose(myfile)。 return 2。 } = 。//循環(huán)準(zhǔn)備 for (。 != 0 。) { fseek(myfile, , 0)。 if ( fread(amp。ms_file,264,1,myfile) == 0) { fclose(myfile)。 return 4。 } cout。 } coutendl。 fclose(myfile)。 return 1。}int MUser::isSame(char filename_f[20],char filename_s[20])//比較兩個文件名是否相同{ for (int i = 0 。 i= 19 。i++) { if (filename_f[i] != filename_s[i]) { return 0。 } if (filename_f[i] == 39。\039。) { return 1。 } } return 1。//相同}int MUser::myConversion(char filename[20])//轉(zhuǎn)換是否鎖定狀態(tài){ s_list ms_list。 int isfind = 0 。 myfile=fopen(,r+)。 if (myfile == NULL) { cout讀取磁盤失??!endl。 return 1。 } = listaddress。 for (。 != 0 。 )//讀取文件的名字并比較 { fseek(myfile, , 0)。 if ( fread(amp。ms_list,sizeof(ms_list),1,myfile) == 0) { //cout循環(huán)讀取目錄失敗,無法讀??!endl。 fclose(myfile)。 return 2。 } if ( isSame(,filename) == 1) { isfind = 1。 break。 } } if ( isfind == 0)//沒有找到指定的文件 { fclose(myfile)。 return 2。 } if( == 0)//對是否鎖定屬性進(jìn)行轉(zhuǎn)換 { = 1。 } else { = 0。 } fseek(myfile,+32,0)。 if( fwrite(amp。,4,1,myfile) == 0 )//將轉(zhuǎn)換完的屬性重新寫入磁盤 { fclose(myfile)。 return 4。 } fclose(myfile)。 return 。}五、 心得體會通過這次的課程設(shè)計(jì)使我認(rèn)識到要將操作系統(tǒng)這門計(jì)算機(jī)專業(yè)的課學(xué)好不僅僅是要把書上的基本知識學(xué)好而且還要不斷進(jìn)行實(shí)踐,將所學(xué)的跟實(shí)踐操作結(jié)合起來才能更好地鞏固所學(xué),實(shí)踐能力與理論知識同樣重要??梢哉f此課程設(shè)計(jì)的理論難度并不大,但是若要深入發(fā)掘其中的東西,并且實(shí)際去編程實(shí)現(xiàn),就遇到了相當(dāng)大的難度。因?yàn)榕c之涉及的很多方面并沒有學(xué)過,需要自己去自學(xué)和實(shí)踐檢驗(yàn)。另外感謝老師一學(xué)期以來的培養(yǎng)。歡迎您的光臨,!希望您提出您寶貴的意見,你的意見是我進(jìn)步的動力。贈語; 如果我們做與不做都會有人笑,如果做不好與做得好還會有人笑,那么我們索性就做得更好,來給人笑吧! 現(xiàn)在你不玩命的學(xué),以后命玩你。我不知道年少輕狂,我只知道勝者為王。不要做金錢、權(quán)利的奴隸;應(yīng)學(xué)會做“金錢、權(quán)利”的主人。什么時(shí)候離光明最近?那就是你覺得黑暗太黑的時(shí)候。最值得欣賞的風(fēng)景,是自己奮斗的足跡。壓力不是有人比你努力,而是那些比你牛幾倍的人依然比你努力。學(xué)習(xí)資料
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1