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

正文內容

超市管理系統(tǒng)c語言課程設計-wenkub.com

2024-08-21 21:45 本頁面
   

【正文】 void showMymenue()。 6. void showVIP()。 5. void addgoods()。 void findall()。 pcontinue()。 y==xmoney。 scanf(%d,amp。) 超市管理系統(tǒng) C 語言課程設計 pcontinue。 money+=*quality。 printf(\n%d\t%s\t%d%d%d\t%d,sho)。 return。i++){ if(m==goods[i].no){ break。 scanf(%d,amp。 printf(\n**************商品交易信息 ***********\n)。 超市管理系統(tǒng) C 語言課程設計 int number。 fclose(fp)。itotal。 int i。 //庫存量 int sell。 //名稱: struct data scday。 int day。 printf(%d\t\t%s\t\t%d%d%d\n,Bperso)。i=total。 scanf(%d,amp。 printf(\n按任意鍵繼續(xù) \n)。 struct cust Bperson。i++){ printf(\n\t%d\t%s\t%d\n, (i+1),q[i]name,q[i]save)。} } } printf(\n**********庫存商品量排行榜 *************\n)。jtotal。i++){ q[i]=p++。 getch()。 total=read_Message()。 } } void Goodssave(){ int i,j。itotal。 q[i]=temp。i++){ for(j=i+1。itotal。 printf(\n按任意鍵繼續(xù) \n)。 //存原數(shù)據(jù)在數(shù)組中位置的指針數(shù)組 struct goods *temp。 getch()。 for(i=0。 q[j]=q[i]。i++){ //使用排序算法來進行比較,并排序。itotal。 pcontinue()。 //存原數(shù)據(jù)在數(shù)組中位置的指針數(shù)組 struct cust *temp。 int total。 //原價 : int expendb。 //現(xiàn)在 文件中總的紀錄條數(shù) struct goods{ 超市管理系統(tǒng) C 語言課程設計 int no。 //總花費 char tel[20]。 }。 int read_Message()。 }else{ printf(\n**********系統(tǒng)中暫無任何商品信息 *******\n)。itotal。 printf(\n 商品總數(shù) :%d,total)。 struct goods c。 printf(\n 修改商品數(shù)據(jù)成功 \n)。 return。n39。 超市管理系統(tǒng) C 語言課程設計 BreakLine。)。 scanf(%d,amp。 printf(\n請輸入商品原價 :)。 scanf(%d%d%d,amp。 //為什么取地址 因為它是一個基本類型的數(shù)據(jù) printf(\n請輸入商品名稱 :)。 } printf(\n****************更新商品信息 ************\n)。 } } //如果,沒有 找到要刪除的 商品 if(i==total){ printf(\n沒有找到您想更新的商品 \n)。todelno)。 system(cls)。 int todelno。 printf(\n 刪除商品數(shù)據(jù)成功 \n)。jtotal。 printf(\n按任意鍵繼續(xù) \n)。 choice=getch()。 printf(\n按任意鍵繼續(xù) \n)。 for(i=0。 超市管理系統(tǒng) C 語言課程設計 total=read_Message()。 int todelno。 }while(choice==39。newgoods, sizeof(struct goods), 1, fp)。)。 scanf(%d,amp。 printf(請輸入商品單價 :)。)。 printf(請輸入商品生產期 :(格式如下 :199999):)。 超市管理系統(tǒng) C 語言課程設計 printf(請輸入商品名稱 :)。 printf(請輸入商品編碼 :)。 //是否繼續(xù)錄入信息 FILE *fp。 } fclose(fp)。 } for(i=0。 } void saveall(){ FILE*fp。 超市管理系統(tǒng) C 語言課程設計 if(goods[i].no==0){ break。 getch()。 //定義一個全局的結構體數(shù)組 100000 int total。 //原價 : int expendb。 struct goods{ int no。} 5. include include include 超市管理系統(tǒng) C 語言課程設計 include include include include include struct date{ int year。 saveAll()。 }//真正刪除, 實際上是覆蓋 for(j=i。){ printf(\n放棄刪除,返回上一級 \n)。 } printf(親愛的管理員,刪除后無法恢復,您確定要刪除嗎? (y or n))。} } if(i==total){ printf(\n沒有找到您要刪除的客戶 \n)。todelno)。 //記錄是否真正刪除 system(cls)。 int todelno。 saveAll()。cust[i].,amp。 printf(請輸客戶電話 :)。 scanf(%s,cust[i].name)。 getch()。itotal。 // 讀出信息 printf(\n 請輸入您要更新的客戶編號 :)。 int toupdateno。} }else {printf(\n********系統(tǒng)中暫無任何客戶信息 **********)。itotal。 printf(\n 客戶總數(shù): %d\n,total)。 struct cust c。 } while(choice==39。newcust,sizeof(struct cust),1,fp)。 BreakLine。,amp。 scanf(%s,)。 scanf(%lf,amp。 printf(請輸入客戶的名字 :)。 printf(請輸入客戶的編號 :)。 FILE *fp。 return i。cust[i],sizeof(struct cust), 1, fp)。//記數(shù) //打開文件 if((fp=fopen(,rb))==NULL){ printf(\n******暫無任何可讀消息 ,按任意鍵繼續(xù) *****\n)。cust[i],sizeof(struct cust),1,fp)。 return。 //最多存 1000 個客戶信息 int total。 //名字 double expenditure。 int day。 pcontinue()。239。139。 BreakLine。 while(1){ system(cls)。 default: printf(\n\t\t您的輸入有誤,請確認重新輸入 .\n)。 case 39。 case 39。 case 39。 case 39。 switch(choice){ case 39。 printf(\t\ \n)。 printf(\t\ VIP客戶排行榜 \n)。} 超市管理系統(tǒng) C 語言課程設計 } } void showSales(){ char choice=39。: showMymenue()。: delcust()。: updatecust()。: findall()。: addcust()。 printf(\n\n 請輸入您的選擇 (1,2,3,4,5):)。 printf(\t\t3. 修改客戶 \n)。 while(1){ system(cls)。 default: printf(\n您的輸入有誤,請檢查后重新輸入 \n)。 case39。 case39。 case39。 case39。 超市管理系統(tǒng) C 語言課程設計 switch (choice){ case39。 printf(\t\t5. 返回上一級 \n)。 printf(\t\t1. 添加商品 \n)。} } } void showGoodsmenue(){ char choice=39。 exit(0)。 break。 break。 break。 break。 choice=getch()。 printf(\t\t4. 銷售預算 \n)。 BreakLine。 void showSell()。 exit(0)。 if(strcmp (upwd,realpassword)==0) return 1。i4。} int login(){ char upwd[8]。 5 專屬,翻版必究 \n\n)。 BreakLine。 exit(0)。 break。 } break。}。 choice=getch()。 printf(\t\t\t2. 關于我們 \n)。 //清屏命令 //打印出程序歡迎界面 printf(\n\n******歡迎進入檸檬 char realpassword[8]=ningmeng。 void pcontinue(){ printf(\t按任意鍵繼續(xù) \n)。我希望自己能一直帶著這份心態(tài)和習慣大步向前。簡而言之,我們要做到三心:編寫代碼要細心;檢查錯誤要耐心;完成任務要恒心。} else {i++。 return 0。 ⑵ 定義函數(shù) read_message()打開文件 int read_message(){ FILE*fp。itotal。 int i。 double expendituer。 char name[20]。 void showMymenue()。 在四大模塊菜單中有 void showVIP()。 void findall()。 void delGoods()。依照前面的嵌套方法一一實現(xiàn)他的功能。 void showCustMenu()。 exit(0)。 scanf(%s,upwd)。 ⑸在輸入密碼部分使用了 For 循環(huán),實現(xiàn)了在登陸三次密碼不正確的情況下強制退出系統(tǒng): for(i=1。039。239。139。 ⑵使用
點擊復制文檔內容
法律信息相關推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1