【正文】
y39。 } fclose(fp)。 fp=fopen(,r)。i)。choice)。 } else if(i[j].number==0) . { shuliang=1。i[j],sizeof(struct ima),1,fp)。 scanf(%d,amp。 } fread(amp。 double jine。 ptr2=ptr1next。 free(ptr2)。 } else{ ptr2next=ptr。 headnext=NULL。 pid=id。price,amp。 char name[20]。 else { return NULL。 break。 pid=id。number,amp。 scanf(%d,amp。 scanf(%d,amp。 int choice,number。 printf(\t\3 \3 \3 \3 \3 \3 \3 \3 \3 \3 \3 \3 \3 \3 \3 \3 \3 \3 \3 \3 \3 \3 \3 \3 \3 \3 \3 \3 \3 \3 \3 \3 \3)。 printf(\t\3 小型超市管理系統(tǒng) \3\n)。 } } main() { printf(\n\n)。Y39。 } } void Endprogram() {char choice。choice)。i,sizeof(struct ima),1,fp)。 } } void zonghe() { struct ima i。choice)。 printf(\n\t 出售價(jià)格 ...%\n,)。 printf(\n\t 商品名稱 ...%30s\n,)。 fp=fopen(,r)。y39。 } fclose(fp)。Y39。 printf(\n\t 進(jìn)貨價(jià)格 ...%\n,)。 printf(\n\t 商品編號 ...%30d\n,)。 exit(0)。 menu()。 scanf( %c,amp。 printf(\t\t 商品出售單價(jià)修改為 :)。 printf(\t\t 商品生產(chǎn)地修改為 :)。 scanf(%d,amp。 index++。 struct ima temp。y39。 } } fclose(fp)。delID)。temp,sizeof(struct ima),1,fp)。 char choice。||choice==39。 } fclose(fp)。 scanf(%d,amp。 FILE *fp。 break。 struct ima i。 if(choice==39。 case 6: system(color 1a)。 case 2: system(color 70)。 printf(\n\n\t\t4**************綠底藍(lán)字 \n)。 menu()。i)。 . break。 break。 printf(\n\t9=====================【 商品的出售管理 】\n)。 printf(\n\t1=====================【 新購商品入庫 】\n)。 void zonghe()。 void chushou(int count)。 char name[20]。 char name[20]。在整個(gè)過程中,都需要周密的計(jì)劃和安排,每一步驟,都需要按照軟件工程標(biāo)準(zhǔn)來完成。 通過此次編程培養(yǎng)了我們結(jié)構(gòu)化程序設(shè)計(jì)的思想,加深了對高級語言基本語言要素和控制結(jié)構(gòu)的理解,鍛煉我們獨(dú)立思考制作程序的能力,并且掌握了一些課程設(shè)計(jì)的相關(guān)知識與實(shí)踐操作能力,為以后的學(xué)習(xí)提供了鍛煉的機(jī)會(huì)。第四部分為系統(tǒng)調(diào)試其中包括子模塊測試和總體測試。 . 圖 主函數(shù)流程圖 輸入 新購物品入庫 物品信息查詢 物品信息刪除 物品信息修改 物品信息瀏覽 物品的預(yù)計(jì)利潤 物品價(jià)值總和瀏覽 系統(tǒng)顏色設(shè)置 應(yīng)用程序退出 物品出售管理 退出程序 開始 判斷 判斷 判斷 輸入編號 執(zhí)行相應(yīng)的函數(shù) 是 否 是 否 是 否 . 源程序 見附件 . 4 調(diào)試分析 進(jìn)入主界 面 打開系統(tǒng),進(jìn)入主界面,顯示“歡迎使用超市管理系統(tǒng)”然后使用者可以按任意鍵進(jìn)入下一界面,此界面整齊美觀,界面友好,是使用者更容易接受。 void colorsetting()。 }。 }。 庫存管理模塊功能 (1)實(shí)現(xiàn)商品信息的查詢; (2)實(shí)現(xiàn)商品信息的更新,包括增加、刪除、修改功能; (3)實(shí)現(xiàn)庫存信息的查詢; (4)實(shí)現(xiàn)庫存信息的更新,包括增加、刪除、修改功能。 (3)易操作原則:要求設(shè)計(jì)的系統(tǒng)功能齊全,界面友好,操作方便,必要的地方進(jìn)行提示。 本系統(tǒng)主要包括以下幾大模塊:輸入單據(jù):出庫、入庫、物品清單;查詢:數(shù)量查詢、價(jià)格查詢、生產(chǎn)地查詢。 關(guān)鍵 詞 : 銷售;管理信息系統(tǒng); C 語言 . Abstract This text mainly introduces the supermarket and enters to sell such contents of various fields as the environment which stores the management information system , scheme on the function , language , design used ,etc.. Let user find out about system this , enable them fine application this system mainly, make this system give play to due function . This system uses the information technology of puter management,sell the course of storing to carry on detailed analysis to the entering of the supermarket, have realized the purchase , sale and scientific management held in store to the supermarket. This system is major and includes following several big modules : The input receipts : The warehouse is gone out to be put in storage that the product end product detailed list is inquired about : The report form being put in storage is gone out the report form product end product detailed list report form in warehouse to sell to move back the money list report form to advance. keywords : Sell 。 (5)源程序可讀性原則:為了便于其他設(shè)計(jì),維護(hù)人員讀懂代碼或以后的代碼修改,軟件升級維護(hù),即可能做好代碼注釋工作。 系統(tǒng)模塊的 運(yùn)用方法 輸入記錄模塊 輸入記錄模塊的功能:輸入各種商品的信息; 查詢記錄模塊 查詢記錄模塊的功能:查詢各種商品的信息; 輸出記錄模塊 輸出記錄模塊的功能:輸出各種商品的信息; . 3 詳細(xì)設(shè)計(jì)使用 數(shù)據(jù)定義 使用 C 語言創(chuàng)建的結(jié)構(gòu)體和定義的函數(shù)如下: include include include include struct produce_node { int id。 struct ima { int id。 void liren()。 void Endprogram()。 主界面顯示圖如圖 所示。第五部分為幫助文件和參考文獻(xiàn)。 經(jīng)過設(shè)計(jì)和開發(fā),銷售管理系統(tǒng)基本開發(fā)完畢以及各類相關(guān)報(bào)表的打印。在設(shè)計(jì)中,我始終堅(jiān)持理論指導(dǎo)實(shí)踐原則,并通過實(shí)踐來加強(qiáng)理論的學(xué)習(xí),通過實(shí)習(xí)鍛煉,我熟悉了軟件的一般過程,加強(qiáng)了對實(shí)際問題的處理能力。 char produce[30]。 char produce[30]。 void Append()。 struct produce_node * lianbiao()。 printf(\n\t2=====================【 商品信息刪除 】\n)。 printf(\n\t10====================【 商品的預(yù)計(jì)的利潤 】\n)。 case 3: Amend()。 case 7: Endprogram()。 chushou(i)。 } } void colorsetting() { int a。 printf(\n\n\t\t5**************黃底紫字 \n)。 break。 break。Y39。 fp=fopen(,r)。 } fread(amp。 fp=fopen(,ab)。)。 printf(\t\t\t\t\t\t 商品信息已入庫成功 !!!\n)。y39。 int index=0。 while(!feof(fp)) { i[index]=temp。 fopen(,w)。 printf(\t\t\t\t\t 商品信息已清除 !!!\n)。) { Selldelete()。 FILE *fp。 fread(amp。