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

正文內(nèi)容

計(jì)算機(jī)操作系統(tǒng)課程設(shè)計(jì)報(bào)告書(shū)(完整版)

  

【正文】 long pointaddress。整個(gè)系統(tǒng)的編碼構(gòu)成主要分為: 定義了每個(gè)分區(qū)的結(jié)構(gòu)體; 聲明了對(duì)系統(tǒng)操作的各種方法; 聲明了對(duì)文件操作的各種方法; 整個(gè)系統(tǒng)的主函數(shù),操作入口; ,實(shí)現(xiàn)了操作系統(tǒng)的各種方法; ,實(shí)現(xiàn)了操作文件的各種方法;主要數(shù)據(jù)結(jié)構(gòu):struct s_user //用戶(hù)區(qū)結(jié)構(gòu)體{ long isuse。. . . .計(jì)算機(jī)操作系統(tǒng)課程設(shè)計(jì)班級(jí):計(jì)0911姓名:學(xué)號(hào):使用語(yǔ)言:C++指導(dǎo)老師:學(xué)院:一、 系統(tǒng)要求實(shí)驗(yàn)?zāi)康? 通過(guò)一個(gè)簡(jiǎn)單多用戶(hù)文件系統(tǒng)的設(shè)計(jì),加深理解文件系統(tǒng)的內(nèi)部功能及內(nèi)部實(shí)現(xiàn)。 //是否使用 char name[20]。 //指向的文件的地址 long isfile。三、 系統(tǒng)執(zhí)行 如果首次進(jìn)入系統(tǒng),還沒(méi)有文件系統(tǒng),則會(huì)提示格式化文件系統(tǒng),創(chuàng)建分區(qū),并初始化分區(qū):剛初始化后,沒(méi)有用戶(hù),提示創(chuàng)建用戶(hù):用戶(hù)創(chuàng)建成功后出現(xiàn)對(duì)系統(tǒng)操作的菜單 注冊(cè)用戶(hù)功能:用戶(hù)登錄,登錄成功后顯示當(dāng)前用戶(hù)下的所有文件及其詳細(xì)信息,同時(shí)顯示對(duì)文件操作的菜單: 新注冊(cè)的用戶(hù)默認(rèn)為沒(méi)有文件,選擇創(chuàng)建文件,并且每次對(duì)文件操作后顯示當(dāng)前用戶(hù)的所有文件和操作菜單:此次新建的文件為鎖定狀態(tài),不能被刪除:對(duì)文件查看,默認(rèn)創(chuàng)建的時(shí)候用0填充文件內(nèi)容: 修改文件內(nèi)容: 對(duì)文件的鎖定進(jìn)行裝換: 1刪除文件: 1注銷(xiāo)登錄退出系統(tǒng):四、 功能實(shí)現(xiàn)include include class MSysterm{ //封裝了管理系統(tǒng)的方法 //成員變量private: FILE *myfile。 //主控制程序 int logout()。 //最后一個(gè)目錄的地址 //成員函數(shù)public: int createFile()。include include iostreaminclude include limitsusing namespace std。\n39。 if(()!=1)//創(chuàng)建磁盤(pán)空間 { cout創(chuàng)建磁盤(pán)空間失?。〖磳⑼顺?。\n39。 } else { cout創(chuàng)建用戶(hù)失??!即將退出。 return 1。 // 清除流的錯(cuò)誤標(biāo)記 (numeric_limitsstreamsize::max(),39。 } else { cout用戶(hù)名不存在或密碼錯(cuò)誤!endl。 } else { cout創(chuàng)建用戶(hù)失敗!endl。 return 1。 s_file ms_file。 } } for (i = 1。i++) { if(fwrite(amp。//記錄當(dāng)前的掃描指針,密碼比對(duì)標(biāo)志位,循環(huán)使用的變量 cout正在檢查用戶(hù)空間是否足夠。 return 1。 // 清除流的錯(cuò)誤標(biāo)記 (numeric_limitsstreamsize::max(),39。 fclose(myfile)。m=19。 break。\n39。 // 清空輸入流 for (m =0 。 if ([m] == 39。 = 0。 return 1。)。 } if (==0) { fseek(myfile,44,1)。m++) { if ([m] != [m]) { issame = 0。endl。 // 清除流的錯(cuò)誤標(biāo)記 (numeric_limitsstreamsize::max(),39。 if ([m] == 39。 fclose(myfile)。 fclose(myfile)。//記錄使用第幾層控制臺(tái),接收函數(shù)返回值 char m_name1[20],m_name2[20]。 cout*******************************endl。 cout*******************************endl。 } cout請(qǐng)輸入要查看的文件的名字:(僅限當(dāng)前目錄)endl。 break。 switch (myget) { case 1: { cout創(chuàng)建成功!endl。 } case 4: { cout文件名已存在!endl。 cinm_name1。 } case 1: { cout磁盤(pán)打開(kāi)失??!endl。 } } break。)。 } case 4: { // cout文件鎖定!無(wú)法修改!endl。 break。 switch (myget) { case 0: { cout文件已轉(zhuǎn)換為 鎖定!endl。 } default: { cout未知原因,修改失??!endl。 i=19 。int MUser::createFile()//增加文件{ s_list ms_list。,e=39。 } fseek(myfile,48*5,0)。 } } if (i==51) { cout目錄空間已滿(mǎn)!創(chuàng)建文件失敗endl。 fclose(myfile)。 ()。ms_list,sizeof(ms_list),1,myfile)==0)//讀取目錄 { cout讀取目錄空間失敗,虛擬磁盤(pán)格式錯(cuò)誤,可能已被損壞endl。 ()。 cout文件是否鎖定? y 鎖定 / n(或其他) 自由讀寫(xiě)endl。 || f_islock == 39。 f_ad_num=(num_char/255)。 fclose(myfile)。 } fseek(myfile,f_address[i],0)。 myerr = 1。 } else//數(shù)據(jù)小于一個(gè)區(qū)塊的大小 { if ( fwrite(amp。 } } for (k =1 。 } }//判斷是否最后一個(gè)數(shù)據(jù)塊結(jié)束 }//數(shù)據(jù)塊寫(xiě)入結(jié)束 //開(kāi)始寫(xiě)入目錄區(qū) = 1。 if ( fwrite(amp。 myerr =3。 myerr = 2。 return 3。 if (myfile == NULL) { cout讀取磁盤(pán)失?。ndl。 if ( fread(amp。 } if( == 0)//文件被鎖定 { fclose(myfile)。 fclose(myfile)。 if( fwrite(amp。 fclose(myfile)。 } fseek(myfile,0)。}int MUser::revampFile(char filename[20])//修改文件{ s_list ms_list。 if (myfile == NULL) { cout讀取磁盤(pán)失敗!endl。 fclose(myfile)。x100。 } } if ( isfind == 0)//找不到指定的文件 { fclose(myfile)。 } else { cout文件名\t\t\t大小\t是否鎖定\t物理地址endl。 )//循環(huán)讀取目錄 { lastaddress = 。\039。 } else { cout\t Y\t\tendl。 return 1。 return 2。) { fseek(myfile, , 0)。}int MUser::isSame(char filename_f[20],char filename_s[20])//比較兩個(gè)文件名是否相同{ for (int i = 0 。 int isfind = 0 。 if ( fread(amp。 } if( == 0)//對(duì)是否鎖定屬性進(jìn)行轉(zhuǎn)換 { = 1。}五、 心得體會(huì)通過(guò)這次的課程設(shè)計(jì)使我認(rèn)識(shí)到要將操作系統(tǒng)這門(mén)計(jì)算機(jī)專(zhuān)業(yè)的課學(xué)好不僅僅是要把書(shū)上的基本知識(shí)學(xué)好而且還要不斷進(jìn)行實(shí)踐,將所學(xué)的跟實(shí)踐操作結(jié)合起來(lái)才能更好地鞏固所學(xué),實(shí)踐能力與理論知識(shí)同樣重要。什么時(shí)候離光明最近?那就是你覺(jué)得黑暗太黑的時(shí)候。因?yàn)榕c之涉及的很多方面并沒(méi)有學(xué)過(guò),需要自己去自學(xué)和實(shí)踐檢驗(yàn)。 } fseek(myfile,+32,0)。 fclose(myfile)。 if (myfile == NULL) { cout讀取磁盤(pán)失?。ndl。i++) { if (filename_f[i] != filename_s[i]) { return 0。ms_file,264,1,myfile) == 0) { fclose(myfile)。 break。 for (。 return 1。amp。 if ( fread(amp。 if (myfile == NULL) { cout讀取磁盤(pán)失敗!endl。 } return 1。 } } if(x) return 5。 } if ( isSame(,filename) == 1) { isfind = 1。 } = listaddress。 int x=0。,4,1,myfile) == 0)//,但是賦值麻煩,直接用file的。 } listaddress = 。 fclose(myfile)。 } fseek(myfile,256, 1)。 } = 。 fclose(myfile)。 } = listaddress。 }}int MUser::delFile(char filename[20])//刪除文件{ s_list ms_list。 return 3。 return 3。 myerr =2。 i=19 。k++)//寫(xiě)入數(shù)據(jù) { if ( fwrite
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1