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

正文內(nèi)容

物品庫存管理課程設(shè)計報告(編輯修改稿)

2025-04-19 10:47 本頁面
 

【文章內(nèi)容簡介】 就調(diào)用這個函數(shù),只從鍵盤輸入具體的品牌數(shù)量或新增品牌數(shù)據(jù)即可,而不用在鍵入品種的各種數(shù)據(jù),同時,新鍵入的各種數(shù)據(jù)也輸出到進貨清單。實際上該函數(shù)是對鏈表中所存在的結(jié)點的數(shù)據(jù)部分的修改。此函數(shù)先判斷出貨量是不是大于庫存量,如果大于將顯示“庫存不足,重新輸入”。如果小于的話將會繼續(xù)程序,通過brnd[choice1].quantity=count。把原有量減去省下剩余量。void CItem::InModify()//已有商品,再次進貨,修改結(jié)點中的數(shù)據(jù)部分{ char name[20]。 char choice。 int count,jinhuo=0。 int prenBrnd=nBrnd。 //原先品牌數(shù) int n=1。 //用于判斷是否繼續(xù)進貨 int flag=0。 //用于判斷是否新品牌 int * num。 num=new int[prenBrnd]。 for(int i=0。inBrnd。i++) //儲存原來的數(shù)量 { num[i]=brnd[i].quantity。 } while(n) { cout\n\n輸入品牌名稱:。 Flush(cin)。 (name,20)。 for(int i=0。inBrnd。i++) { if(strcmp(brnd[i].brnd_name,name)==0) { cout\n\n輸入進貨數(shù)量:。 cincount。 brnd[i].quantity+=count。 quantity+=count。 flag=1。 break。 } } if(flag==0) { strcpy(brnd[nBrnd].brnd_name,name)。 cout\n輸入品牌代碼:。 cinbrnd[nBrnd].Brand_code。 cout\n輸入數(shù)量:。 cinbrnd[nBrnd].quantity。 cout\n輸入價格:。 cinbrnd[nBrnd].brnd_price。 quantity+=brnd[nBrnd].quantity。 nBrnd++。 } cout\n繼續(xù)進貨:y/n 。 cinchoice。 if(choice==39。y39。||choice==39。Y39。) n=1。 else n=0。 } ofstream file(,ios::out|ios::ate)。 if(!file) { cout錯誤,不能打開文件.。 getch()。 exit(1)。 } timer=time(NULL)。 filectime(amp。timer)。 file品種\t代碼\t顏色\n。 fileItem_name\tItem_code\tcolour\n\n。 file品牌\t代碼\t價格\t進貨量\n。 for(i=0。iprenBrnd。i++) { if(jinhuo=brnd[i].quantitynum[i]) { filebrnd[i].brnd_name\tbrnd[i].Brand_code\t brnd[i].brnd_price\tjinhuo\n。 } } if(nBrndprenBrnd) { for(i=prenBrnd。inBrnd。i++) { filebrnd[i].brnd_name\tbrnd[i].Brand_code\t brnd[i].brnd_price\tbrnd[i].quantity\n。 } } file\n\n。 delete []num。 ()。} void add()這個函數(shù)實現(xiàn)添加客戶資料功能。創(chuàng)建了一個“客戶資料”文件,從鍵盤輸入客戶資料,再將客戶的資料傳到文件中,從而實現(xiàn)添加的功能。void customer::add() //加入客戶資料 { ofstream file( , ios::out |ios::ate )。 if(!file) { cout錯誤,無法打開文件。 getch()。 exit(1)。 } customer p2。 ()。 //從鍵盤輸入客戶資料 //將該客戶的資料傳到文件中 (reinterpret_cast char * (amp。p2),sizeof(customer))。//reinterpret_cast將其他類型的數(shù)據(jù)轉(zhuǎn)換為字符指針 } void showab()這個函數(shù)實現(xiàn)的是顯示客戶資料的功能。首先以輸入方式打開文件,讀取“客戶資料”文件,再讀取,從而實現(xiàn)顯示的功能。void customer::showab() //全部顯示{ ifstream file( ,ios::in)。 //以輸入方式打開文件 if(!file) { cout錯誤,無法打開文件。 getch()。 exit(1)。 } customer p2。 (reinterpret_cast char * (amp。p2),sizeof(customer))。//
點擊復制文檔內(nèi)容
試題試卷相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1