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

正文內(nèi)容

計(jì)算機(jī)操作系統(tǒng)課程設(shè)計(jì)(專業(yè)版)

2025-08-18 15:59上一頁面

下一頁面
  

【正文】 if( fwrite(amp。 return 1。 return 4。 != 0 。 i=19 。 return 1。 if( fwrite(amp。 for (。反正數(shù)據(jù)結(jié)構(gòu)一樣 { cout6endl。 return 4。//循環(huán)準(zhǔn)備 for (。 = listaddress 。 } fseek(myfile,lastaddress+40,0)。 fclose(myfile)。e,1,1,myfile) == 0) { cout數(shù)據(jù)模塊寫入 結(jié)束符 失敗endl。 myerr = 1。 int k = 0。 } else { =1。)。)。 } fseek(myfile,48*5+44*50,0)。 long old_lastaddress = lastaddress 。 } fclose(myfile)。 break。 break。 } cout請(qǐng)輸入要修改的文件的名字:(僅限當(dāng)前目錄)endl。\n39。 break。 // 清除流的錯(cuò)誤標(biāo)記 (numeric_limitsstreamsize::max(),39。 cout endl。 return 2。 } } } if (issame == 0) { cout密碼錯(cuò)誤,請(qǐng)重新輸入。 } for (int k=0。,20,1,myfile)==0)//讀取名字 { cout讀取用戶空間失敗,虛擬磁盤格式錯(cuò)誤,可能已被損壞endl。//比較標(biāo)記,循環(huán)使用的變量 cout請(qǐng)輸入用戶名:endl。 } } } if (issame == 1) { break。 cin。 } else { issame = 1。 // 清空輸入流 fseek(myfile,0,0)。 for (i=1。ms_list,sizeof(ms_list),1,myfile)!=1)//目錄區(qū)格式化 { cout目錄格式信息寫入失??!endl。 if(myfile==NULL) { return 1。 cinnod1。 cout請(qǐng)選擇:endl。Y39。Y39。//修改文件 int mydir()。 //打印登陸后的用戶名 int cheack()。 //目錄地址}。本文件系統(tǒng)采用兩級(jí)目錄,其中第一級(jí)對(duì)應(yīng)于用戶賬號(hào),第二級(jí)對(duì)應(yīng)于用戶帳號(hào)下的文件。struct s_file //文件結(jié)構(gòu)體{ long isuse。 //用戶名 char psd[20]。 /***********文件不存在的程序入口************/ if(()==1)//磁盤空間不存在 { cout虛擬磁盤文件不存在,是否生成? Y/N endl。 } cout創(chuàng)建完成!是否創(chuàng)建用戶? Y/N endl。endl。i_1=3。}include include include iostreaminclude include limits//用于清除殘留的輸入流using namespace std。 i++) { if(fwrite(amp。 } } fclose(myfile)。 } for (。,20,1,myfile)==0)//讀取用戶區(qū)的名字 { cout讀取用戶空間失敗,虛擬磁盤格式錯(cuò)誤,可能已被損壞endl。endl。 39。 if(fwrite(amp。i++) { if (fread(amp。\039。m=19。m++)//對(duì)對(duì)象 myuser 賦值 { [m] = [m]。 } coutendl******************************************************************************endl。\n39。 break。 } } break。 } case 4: { cout文件鎖定!不能刪除!endl。 } case 1: { cout磁盤打開失??!endl。 // 清除流的錯(cuò)誤標(biāo)記 (numeric_limitsstreamsize::max(),39。 } }//switch }}int MSysterm::logout()//用戶注銷{ char word[20] = {39。 //寫入的塊數(shù),是否在最終寫入時(shí)失敗(失敗置1) char f_name[20] = {39。,4,1,myfile)==0)//讀取是否使用 { cout讀取目錄空間失敗,虛擬磁盤格式錯(cuò)誤,可能已被損壞endl。 fclose(myfile)。 return 4。\n39。 return 1。 } for ( k =1 。 k =num_char 。 } = nowaddress*44 + 48*5。 lastaddress = 。 = 0。 } if ( isSame(,filename) == 1) { isfind = 1。,4,1,myfile) == 0)//讀取下一個(gè)數(shù)據(jù)塊地址 { cout2endl。//上一個(gè)目錄的指向鏈接處 if( fwrite(amp。\0 39。 fseek(myfile,+4,0)。 s_list ms_list。 fclose(myfile)。 s_file ms_file。 return 2。\039。 } if ( isSame(,filename) == 1) { isfind = 1。因?yàn)榕c之涉及的很多方面并沒有學(xué)過,需要自己去自學(xué)和實(shí)踐檢驗(yàn)。 fclose(myfile)。i++) { if (filename_f[i] != filename_s[i]) { return 0。 break。 return 1。 if ( fread(amp。 } return 1。 } if ( isSame(,filename) == 1) { isfind = 1。 int x=0。 } listaddress = 。 } fseek(myfile,256, 1)。 fclose(myfile)。 }}int MUser::delFile(char filename[20])//刪除文件{ s_list ms_list。 return 3。 i=19 。 myerr = 1。,4,1,myfile) == 0)//寫入已被使用 { cout數(shù)據(jù)模塊寫入isuse失敗endl。,4,1,myfile)==0) { cout讀取數(shù)據(jù)空間失敗,虛擬磁盤格式錯(cuò)誤,可能已被損壞endl。 ()。 return 1。 } if (==0)//如果有空白的數(shù)據(jù)塊則跳出 { break。i=50。 long nowaddress =0 ,f_address[10], num_char = 0 。 } } break。 cinm_name1。 switch (myget) { case 1: { cout文件修改成功!endl。 } case 2: { cout文件不存在!endl。 } default: { //cout創(chuàng)建文件失敗,原因未知!endl。 break。 ()。) { if(m_point == 0) { myget=logout()。 } for (m=0。)。 } else { issame = 1。 for (i = 1。 myfile=fopen(,r+)。m++) { if ([m] != [m]) { issame = 0。 } } if (i=6) { for (。 } if (==0) { fseek(myfile,44,1)。 } } if (i==6) { cout用戶空間已滿!創(chuàng)建用戶失敗endl。 fclose(myfile)。 for (i =1 。 } } ()。)。 return 3。 cinnod1。 int n_select = 2 , i_1 =0。include class MUser //封裝了管理文件的方法{ //成員變量public: FILE *myfile。 //目標(biāo)文件的大小 long nextaddress。要求做到以下幾點(diǎn): (1)可以實(shí)現(xiàn)下列幾條命令(至少4條); login 用戶登陸 dir 列文件目錄 create 創(chuàng)建文件 delete 刪除文件 open 打開文件 close 關(guān)閉文件 read 讀文件 write 寫文件 (2)列目錄時(shí)要列出文件名、物理地址、保護(hù)碼和文件長(zhǎng)度; (3)源文件可以進(jìn)行讀寫保護(hù)。 //是否使用 char name[20]。 //初始化虛擬磁盤 int createuser()。//查看文件 int myConversion(char filename[20])。y39。y39。 cout*********************endl。 } break。 =0。 return 3。i++,fseek(myfile,44,1),nowaddress++
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1