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

正文內(nèi)容

教學(xué)設(shè)備管理系統(tǒng)c(編輯修改稿)

2025-05-05 23:37 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 cout請(qǐng)輸入您需要修改的選項(xiàng):。 cinchoice。 if(choice 1 || choice 8) { cout輸入錯(cuò)誤,請(qǐng)重新輸入!endl。 choice = 1。 continue。 } switch (choice) { case 1: elem[i]setNum()。 break。 case 2: elem[i]setName()。 break。 case 3: elem[i]setFactory()。 break。 case 4: elem[i]setDate()。 break。 case 5: elem[i]setAmount()。 break。 case 6: elem[i]setPrrice()。 break。 case 7: elem[i]setNotes()。 break。 case 8: break。 } } while (choice != 8)。 } } if(!ok) cout您的輸入有誤!endl。 } else cout現(xiàn)無(wú)任何設(shè)備!endl。}bool List::Save(){ ofstream fout。 ()。 (0)。 //清楚txt文檔的數(shù)據(jù) (1,ios::end)。 //在txt文檔中光標(biāo)退格 if(()) { cout找不到文件,保存失??!endl。 return false。 } else { for(int i = 0 。 i n 。 i++) { elem[i]foutput(fout)。 } } cout保存成功!endl。 ()。 return true。}bool List::Read(){ int size。 ifstream fin。 ()。 streampos pos = ()。 (0,ios::end)。 size = ()。 (pos)。 if(()) { cout找不到文件,讀取失敗!endl。 return false。 } else { int num_,amount_,y,m,d。 double prrice_。 char name_[20],factory_[30],notes_[101]。 n = 0。 while(size != 1) { finnum_。 finname_。 finfactory_。 finymd。 if(()) break。 Date date_(y,m,d)。 finamount_。 finprrice_。 finnotes_。 elem[n] = new Equipment(num_,name_,amount_,prrice_)。 elem[n]give(factory_,date_,notes_)。 n++。 } } cout讀取成功!endl。 ()。 return true。}void List::Delete(){ system(cls)。 if(n 0) { int i,num_。 bool ok = false。 cout現(xiàn)有的設(shè)備編號(hào)如下:endl。 for (i = 0 。 i n 。 i++) { coutelem[i]getNum() 。 } coutendl。 cout請(qǐng)選擇您要?jiǎng)h除的設(shè)備編號(hào):。 cinnum_。 for (i = 0 。 i n 。 i++) { if(elem[i]getNum()==num_) { ok = true。 system(cls)。 elem[i]output()。 cout您確定要?jiǎng)h除此設(shè)備? (Y or N)endl。 char str。 do { cinstr。 if(str != 39。Y39。 amp。amp。 str != 39。N39。) { cout輸入錯(cuò)誤,請(qǐng)重新輸入:。 } } while (str != 39。Y39。 amp。amp。 str != 39。N39。)。 if(str == 39。Y39。) { ofstream fout。 ()。 。 elem[i]foutput(fout)。 ()。 if(i == n1) { delete [] elem[i]。 elem[i] = NULL。 } else { Equipment *tem。 tem = elem[i]。 elem[i] = elem[n1]。 elem[n1] = tem。 delete [] elem[n1]。 elem[n1] = NULL。 } n。 cout刪除成功!endl。 } else cout刪除失??!endl。 } } if(!ok) cout您的輸入有誤!endl。 } else cout現(xiàn)無(wú)任何設(shè)備!endl。}void List::Recover(){ int size。 ifstream fin。 ()。 streampos pos = ()。 (0,ios::end)。 size = ()。 (pos)。 if(()) { cout找不到文件,恢復(fù)失?。ndl。 } else { int num_,amount_,y,m,d。 double prrice_。 char name_[20],factory_[30],notes_[101]。 while(!() amp。amp。 size != 1) { finnum_。 finname_。 finfactory
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1