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

正文內容

超市管理系統(tǒng)c語言課程設計-在線瀏覽

2024-10-28 21:45本頁面
  

【正文】 次密碼不正確的情況下強制退出系統(tǒng): for(i=1。i++){ BreakLine。 scanf(%s,upwd)。 if(strcmp(upwd,realpassword)==0){ return(1)。 printf(\n您還有第 %d 次輸入機會 ,(3i))。 \n)。 exit(0)。 再在 void showMainMenu()。 void showCustMenu()。 void showSaleMenu()。依照前面的嵌套方法一一實現他的功能。 void findGoodsAll()。 void delGoods()。 void delcust()。 void findall()。 void saveall()。 在四大模塊菜單中有 void showVIP()。 void Goodssave()。 void showMymenue()。 實現了購物結算中:商品交易信息、返回上一級 銷售預算中: 顯示最具有貢獻精神 VIP客戶排行榜 顯示最具有影響力的商品排行榜 顯示庫存商品量排行榜 當月生日的客戶 以及 返回上一級 等功能 結構體的建立和文件的使用 在實現添加功能時使用了結構體、指針等對現階段我們來說較難理解的內容。 char name[20]。 int age。 double expendituer。 }cust[1000]。 int i。 return。itotal。cust[i],sizeof(struct cust),1,fp)。 ⑵ 定義函數 read_message()打開文件 int read_message(){ FILE*fp。//記數 //打開文件 if((fp=fopen(,rb))==NULL){ printf(\n*****暫無任何可讀消息 ,按任意鍵繼續(xù) **********\n)。 return 0。cust[i],sizeof(struct cust), 1, fp)。} else {i++。 return i。簡而言之,我們要做到三心:編寫代碼要細心;檢查錯誤要耐心;完成任務要恒心。 超市管理系統(tǒng) C 語言課程設計 所以,很感謝學校和老師給我們提供這樣一個機會。我希望自己能一直帶著這份心態(tài)和習慣大步向前。 附錄 檸檬 void pcontinue(){ printf(\t按任意鍵繼續(xù) \n)。} 2. include include //字符串 先到系統(tǒng)的庫找,再到用戶庫 include include include include include void aboutUs()。 char realpassword[8]=ningmeng。339。 //清屏命令 //打印出程序歡迎界面 printf(\n\n******歡迎進入檸檬 超市管理系統(tǒng) C 語言課程設計 printf(\n請您選擇操作選項: \n\n)。 printf(\t\t\t2. 關于我們 \n)。 printf(\n\n*****************\n\n)。 choice=getch()。 break。}。139。 } break。239。 break。339。 exit(0)。} } while(1)。 BreakLine。 5\n\n)。 5 專屬,翻版必究 \n\n)。 BreakLine。} int login(){ char upwd[8]。 system(cls)。i4。 printf(請輸入您的 8 位數密碼 :)。 if(strcmp (upwd,realpassword)==0) return 1。 printf(您還有 %d 次輸入機會 , (3i))。 exit(0)。 void showCustmenue()。 void showSell()。539。 BreakLine。 printf(\t\t2. 客戶管理 \n)。 printf(\t\t4. 銷售預算 \n)。 BreakLine。 choice=getch()。139。 break。239。 break。339。 break。439。 break。539。 exit(0)。 default: printf(\n您的輸入有誤,請檢查后重新輸入 \n)。} } } void showGoodsmenue(){ char choice=39。 while(1){ system(cls)。 printf(\t\t1. 添加商品 \n)。 printf(\t\t3. 更新商品 \n)。 printf(\t\t5. 返回上一級 \n)。 printf(\n\n 請輸入您的選擇 (1,2,3,4,5):)。 超市管理系統(tǒng) C 語言課程設計 switch (choice){ case39。: addgoods()。 case39。: findgoods()。 case39。: updategoods()。 case39。: delgoods()。 case39。: showMymenue()。 default: printf(\n您的輸入有誤,請檢查后重新輸入 \n)。} } } void showCustmenue(){ char choice=39。 while(1){ system(cls)。 printf(\t\t1. 添加客戶 \n)。 printf(\t\t3. 修改客戶 \n)。 printf(\t\t5. 返回上一級 \n)。 printf(\n\n 請輸入您的選擇 (1,2,3,4,5):)。 switch (choice){ case39。: addcust()。 case39。: findall()。 case39。: updatecust()。 case39。: delcust()。 case39。: showMymenue()。 default: printf(\n您的輸入有誤,請檢查后重新輸入 \n)。} 超市管理系統(tǒng) C 語言課程設計 } } void showSales(){ char choice=39。 while(1){ system(cls)。 printf(\t\ VIP客戶排行榜 \n)。 printf(\t\ \n)。 printf(\t\ \n)。 printf(\n\t\t請輸入您的選擇 (1,2,3,4,5):)。 switch(choice){ case 39。: showVIP()。 case 39。: Goodseffect()。 case 39。: Goodssave()。 case 39。: Birthdayperson()。 case 39。: showMymenue()。 default: printf(\n\t\t您的輸入有誤,請確認重新輸入 .\n)。}//調用按任意鍵繼續(xù) } } void showSell(){ char choice=39。 while(1){ system(cls)。 printf(\t\ \n)。 BreakLine。 choice=getch()。139。 break。239。 break。 pcontinue()。 struct data{ int year。 int day。 struct cust{ int no。 //名字 double expenditure。 //電話號碼 struct data birthday。 //最多存 1000 個客戶信息 int total。 int i。 return。itotal。cust[i],sizeof(struct cust),1,fp)。 }// 獲取現有文件中客戶的總人數 int read_message(){ FILE*fp。//記數 //打開文件 if((fp=fopen(,rb))==NULL){ printf(\n******暫無任何可讀消息 ,按任意鍵繼續(xù) *****\n)。 return 0。cust[i],sizeof(struct cust), 1, fp)。 }else {i++。 return i。 char choice=39。 FILE *fp。 do{ system(cls)。 printf(請輸入客戶的編號 :)。)。 printf(請輸入客戶的名字 :)。 printf(\n)。 scanf(%lf,amp。 printf(\n)。 scanf(%s,)。 printf(請輸入客戶的生日 :(格式 :199999))。,amp。)。 BreakLine。 return 。newcust,sizeof(struct cust),1,fp)。 printf(您還要繼續(xù)輸入新客戶信息嗎 ?(y/n))。 } while(choice==39。)。 struct cust c。 system(cls)。 printf(\n 客戶總數: %d\n,total)。 printf(\n 編號 \t 姓名 \t 消費 \t\t 電話 \t\t 生日 )。itotal。 printf(\n %d\t %s\t %lf\t %s\t %d%d%d\t\n,)。} }else {printf(\n********系統(tǒng)中暫無任何客戶信息 **********)。 getch()。 int toupdateno。 system(cls)。 // 讀出信息 printf(\n 請輸入您要更新的客戶編號 :)。toupdateno)。itotal。} } //i里面記錄了要更新的客戶的索引 if(i==total){ printf(\n 沒有找到要更新的客戶 \n)。 getch()。} printf(\n**********請更新用戶信息 **********\n)。 scanf(%s,cust[i].name)。 scanf(%d,amp。 printf(請輸客戶電話 :)。 printf(請輸入客戶的生日 (格式: 199999):)。cust[i].,amp。cust[i].)。 saveAll()。 getch()。 int todelno。 char choice=39。 //記錄是否真正刪除 system(cls)。//先讀出數據 超市管理系統(tǒng) C 語言課程設計 printf(\
點擊復制文檔內容
法律信息相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1