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

正文內(nèi)容

超市管理系統(tǒng)c語言課程設(shè)計(jì)-文庫吧資料

2024-09-02 21:45本頁面
  

【正文】 jtotal。 return。 printf(\n按任意鍵繼續(xù) \n)。n39。 choice=getch()。 return。 pcontinue()。i++){ if(todelno==cust[i].no){ break。 for(i=0。 scanf(%d, amp。 total=read_message()。n39。//刪除客戶的編號 int j。} void delcust(){ int i。 printf(\n更新客戶信息成功,按任意鍵繼續(xù) \n)。 BreakLine。cust[i].,amp。 scanf(%d%d%d,amp。 scanf(%s,cust[i].tel)。cust[i].expenditure)。 printf(請輸入客戶消費(fèi) :)。 printf(請輸入客戶姓名 :)。 return。 printf(按任意鍵繼續(xù) \n)。i++){ if(toupdateno==cust[i].no){ break。 //查找 for(i=0。 超市管理系統(tǒng) C 語言課程設(shè)計(jì) scanf(%d,amp。 total=read_message()。 //要更新的編號 int j。} void updatecust(){ int i。} pcontinue()。 printf(\n\n\n\n\n)。i++){ c=cust[i]。 for(i=0。 if(total0){ printf(\n***********顯示所有客戶信息 *************\n)。 printf(\n***************客戶信息 **************\n)。 total= read_message()。} void findall(){ //定義查詢所有的 int i。y39。 choice=getch()。 超市管理系統(tǒng) C 語言課程設(shè)計(jì) fclose(fp)。 } fwrite(amp。 if((fp=fopen(,ab))==NULL){ printf(\n對不起 ,不能打開指定的文件 \n)。 printf(\n)。onth,amp。 scanf(%d%d%d,amp。 printf(\n)。 printf(請輸入客戶的電話號碼 :)。)。 printf(請輸入客戶消費(fèi) :)。 scanf(%s,)。 printf(\n)。 scanf(%d,amp。 BreakLine。 int i=0。y39。 //存到 cust 結(jié)構(gòu)中 超市管理系統(tǒng) C 語言課程設(shè)計(jì) } void addcust(){ //定義增加的 struct cust newcust。 } } //循環(huán)讀取文件中的每一條記錄 fclose(fp)。 if(cust[i].no==0){ break。 } while(!feof(fp)){ fread(amp。 getch()。 int i=0。 } fclose(fp)。i++){ fwrite(amp。 } for(i=0。 if((fp=fopen(,wb))==NULL){ printf(\n 無法打開文件 \n)。 //現(xiàn)在 文件中總的紀(jì)錄條數(shù) void saveAll(){ FILE*fp。 //生日 超市管理系統(tǒng) C 語言課程設(shè)計(jì) }cust[1000]。 //總花費(fèi) char tel[20]。 //編號 char name[20]。 }。 int month。} //調(diào)用按任意鍵繼續(xù) } } 4. include include include include include include include include read_message()。 default: printf(\n\t\t您的輸入有誤,請確認(rèn)重新輸入 .\n)。: showMymenue()。 case 39。: shopping()。 switch(choice){ case 39。 printf(\n\t\t請輸入您的選擇 (1,2,):)。 超市管理系統(tǒng) C 語言課程設(shè)計(jì) printf(\t\ \n)。 BreakLine。239。 pcontinue()。 break。539。 break。439。 break。339。 break。239。 break。139。 choice=getch()。 BreakLine。 printf(\t\ \n)。 printf(\t\ \n)。 BreakLine。539。 pcontinue()。break。539。break。439。break。339。break。239。break。139。 choice=getch()。 BreakLine。 printf(\t\t4. 刪除客戶 \n)。 printf(\t\t2. 查找客戶 \n)。 BreakLine。539。 pcontinue()。break。539。break。439。break。339。break。239。break。139。 choice=getch()。 BreakLine。 printf(\t\t4. 刪除商品 \n)。 printf(\t\t2. 查詢商品 \n)。 BreakLine。539。 pcontinue()。 break。:printf(\n\n 系統(tǒng)安全退出 \n\n)。 case39。: showSales()。 case39。: showSell()。 case39。: showCustmenue()。 case39。: showGoodsmenue()。 switch (choice){ case39。 printf(\n\n 請輸入您的選擇 (1,2,3,4,5):)。 printf(\t\t5. 退出系統(tǒng) \n)。 超市管理系統(tǒng) C 語言課程設(shè)計(jì) printf(\t\t3. 購物預(yù)算 \n)。 printf(\t\t1. 商品管理 \n)。 while(1){ system(cls)。 void showMymenue(){ char choice=39。 void showSales()。} 3. include include include include include include include include include void showGoodsmenue()。} printf(\n系統(tǒng)鄭重提示,您不是合法用戶,為系統(tǒng)安全,強(qiáng)制退出 \n)。 printf(您好,您的密碼錯(cuò)誤,請確認(rèn)后重新輸入 \n)。 scanf(%s,upwd)。i++){ BreakLine。 超市管理系統(tǒng) C 語言課程設(shè)計(jì) for(i=1。 int i。 pcontinue()。 printf(\t\t技術(shù)扶持 Tell:18373440701)。 printf(\t\t\t檸檬 printf(\t\t 版權(quán)所有 湖南工學(xué)院網(wǎng)絡(luò) 1101 班檸檬 } void aboutUs(){ system(cls)。 break。: printf(\n\n系統(tǒng)安全退出 \n\n)。 case 39。: aboutUs()。 case 39。: if(login()==1){ showMymenue()。 switch(choice){ case 39。 default xxx。 //getch()從鍵盤輸入一個(gè)字符 //判斷 switch(變量 ){ case 值 1: xxx。 //完成輸入操作 printf(\n 請輸入您的選項(xiàng) (1,2,3):)。 printf(\t\t\t3. 退出系統(tǒng) \n)。 printf(\t\t\t1. 登錄 \n)。 5 超市管理系統(tǒng) ***\n\n)。 //存儲判斷的選項(xiàng) do{ system(cls)。 //系統(tǒng)的真實(shí)登錄密碼 void main(){ char choice=39。 int login()。 getch()。 5supermarket 管理系統(tǒng)源代碼 Source Files 1. void pcontinue()。 參考文獻(xiàn) [1]武愛平 卜耀華 孫東衛(wèi) . C 語言程序設(shè)計(jì) [M]. 長春:吉林大學(xué)出版社。在鍛煉自己的同時(shí)讓自己養(yǎng)成了良好的學(xué)習(xí)習(xí)慣。除此,在學(xué)到知識的同時(shí)鍛煉了我們的團(tuán)結(jié)合作精神,也使得我們小組成員之間有更深的交流。} 第四章 程序設(shè)計(jì)心得與體會 通過為期兩周的課程設(shè)計(jì),我們不僅復(fù)習(xí)了課本上所學(xué)知識,還通過查閱資料、詢問老師同學(xué)學(xué)到了很多課本上沒有的只是,從而啟發(fā)我們:要想寫好程序,在學(xué)好課本只是的同時(shí)還需要多閱讀和專業(yè)有關(guān)的書記,同時(shí)還需要多動腦子,要有縝密的邏輯思維能力和綜合應(yīng)用能力。 } } fclose(fp)。 if(cust[i].no=0){ break。 } //循環(huán)讀取文件中的每一條記錄 ( 3) 結(jié)合循環(huán)語句,關(guān)閉文件 while(!feof(fp)){ fread(amp。 getch()。 int i=0。 } fclose(fp)。i++){ fwrite(amp。 超市管理系統(tǒng) C 語言課程設(shè)計(jì) } for(i=0。 if((fp=fopen(,wb))==NULL){ printf(\n無法打開文件 \n)。 3. 文件的使用 客戶信息管理和商品管理都有用到文件, 它 于我們是重點(diǎn)也是難點(diǎn) ⑴ 定義文件 FILE*fp。 char tel[20]。 struct date birthday。 char sex。 結(jié)構(gòu)體語句的使用 我們會在程序中用到如下結(jié)構(gòu)體語句: Struct date/日期 int year/年 int month/月 int day/日 Struct cust/客戶信息 超市管理系統(tǒng) C 語言課程設(shè)計(jì) int no/編號 char name[20]姓名 char sex/性別 int age/年齡 struct date birthday/生日 double expenditure/花費(fèi) char tel/電話號碼 Struct goods/商品信息 nt num/商品代碼 char name[50]/商品名字 int sale/商品數(shù)量 float price/商品單價(jià) int lacation/商品位置 在整個(gè)程序中我們會如下用到結(jié)構(gòu)體語句,不同的結(jié)構(gòu)體類型: struct cust{ int no。 vo
點(diǎn)擊復(fù)制文檔內(nèi)容
法律信息相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1