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

正文內(nèi)容

小型超市商品銷售管理系統(tǒng)c文檔下載(編輯修改稿)

2024-12-22 16:48 本頁面
 

【文章內(nèi)容簡介】 計(jì) class spbase {public: int t。 float oprice。 float iprice。 float prof。 int quantity。 15 char name[10]。 void getdate()。 void showdate()。 void add()。 void search()。 void remove()。 gett(){return t。} }。 oid spbase::getdate() //輸入函數(shù)的設(shè)計(jì) { cout\n\t\t請輸入商品名稱 :。 cinname。 cout\n\t\t請輸入商品售價(jià) :。 cinoprice。 cout\n\t\t請輸入商品進(jìn)價(jià) :。 ciniprice。 cout\n\t\t請輸入商品庫存量 :。 cinquantity。 } void spbase::showdate() //輸出函數(shù)的設(shè)計(jì) { cout\n\n商品基本信息如下 :。 cout\n\n\t\t商品名稱 :。 coutname。 cout\n\n\t\t商品售價(jià) :。 coutoprice。 cout\n\n\t\t商品進(jìn)價(jià) :。 coutiprice。 cout\n\n\t\t商品庫存量 :。 coutquantity。 prof=(opriceiprice)*quantity。 cout\n\n\t\t商品利潤為 :。 coutprof。 } void spbase::add() //添加函數(shù)的設(shè)計(jì) { t=1。 ofstream file(,ios::out|ios::ate)。 if(!file) {cout文件打開失?。?。 getch()。 exit(1)。 16 } spbase p1。 ()。 (reinterpret_castchar*(amp。p1),sizeof(spbase))。 // reinterpret_cast強(qiáng)制轉(zhuǎn)換 ()。 } void spbase::search() //查詢函數(shù)的設(shè)計(jì) { char name4[10]。 cout\n請輸入生活用品名稱 :。 cinname4。 fstream file(,ios::in)。 if (!file) {cout文件打開失?。?。 getch()。 exit(1)。 } char flag=39。a39。 //設(shè)標(biāo)志位 spbase p1。 (reinterpret_castchar*(amp。p1),sizeof(spbase))。 while(!()) //正確顯示,指針還沒到末尾繼續(xù) { if((strcmp(,name4)==0)amp。amp。gett()) {()。 getch()。 flag=39。z39。 break。 } (reinterpret_castchar*(amp。p1),sizeof(spbase))。 } if(flag!=39。z39。) { cout(該商品已被刪除! )。 getch()。 } ()。 } 17 void spbase::remove() //刪除函數(shù)的設(shè)計(jì) { t=0。search()。} 3. 食品類設(shè)計(jì) (food) class food:public spbase { private: char pfs[10]。 public: void getdatef() { spbase::getdate()。 cout\n\t\t請輸入商品批發(fā)商 :。 cinpfs。 } void showdatef() { spbase::showdate()。 cout\n\n\t\t商品批發(fā)商 :。 coutpfs。 } void addf() { t=1。 ofstream file(,ios::out|ios::ate)。 if(!file) {cout文件打開失??! 。 getch()。 exit(1)。 } food f。 ()。 (reinterpret_castchar*(amp。f),sizeof(food))。 ()。 } void searchf() { char name1[10]。 cout\n請輸入食品名稱 :。 cinname1。 18 fstream file(,ios::in)。 if (!file) {cout文件打開失??! 。 getch()。 exit(1)。 } char flag=39。a39。 food f。 (reinterpret_castchar*(amp。f),sizeof(food))。 while(!()) { if((strcmp(,name1)==0)amp。amp。gett()) {()。 getch()。 flag=39。z39。 break。 } (reinterpret_castchar*(amp。f),sizeof(food))。 } if(flag!=39。z39。) { cout(該商品已被刪除! )。 getch()。 } ()。 } void removef() { t=0。searchf()。} }。 4. 化妝品類設(shè)計(jì)( makeup) class makeup:public spbase { private: char pp[10]。 public: void getdatem() { spbase::getdate()。 cout\n\t\t請輸入商品品牌 :。 cinpp。 } 19 void showdatem() { spbase::showdate()。 cout\n\n\t\t商品品牌 :。 coutpp。 } void addm() { t=1。 ofstream file(,ios::out|ios::ate)。 if(!file) {cout文件打開失??! 。 getch()。 exit(1)。 } makeup m。 ()。 (reinterpret_castchar*(amp。m),sizeof(makeup))。 ()。 } void searchm() { char name2[10]。 cout\n請輸入化妝品名稱 :。 cinname2。 fstream file(,ios::in)。 if (!file) {cout文件打開失敗! 。 getch()。 exit(1)。 } char flag=39。a39。
點(diǎn)擊復(fù)制文檔內(nèi)容
試題試卷相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1