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

正文內(nèi)容

c課程設(shè)計報告-超市管理系統(tǒng)-在線瀏覽

2025-05-29 22:18本頁面
  

【正文】 格,屏幕出現(xiàn)相應(yīng)的商品信息。 編碼:find(struct goods *head) { struct goods *p。printf(請選擇:\n)。printf(\n\n\t\t請輸入序號: )。b)。 scanf(%d,amp。 printf(\n)。while(p!=NULL){if(pnumber==a) {printf( \t\t貨號 名稱 類型 單價(元) 數(shù)量 )。break。} if(p==NULL) printf(\n沒有找到相關(guān)商品\n\n) } if(b==2) { p=headnext。 scanf(%d,amp。 while(p!=NULL){if(pprice==a { printf( \t\t貨號 名稱 類型 單價(元) 數(shù)量 )。 } p=pnext。 }printf(按任意鍵返回菜單。 return(0)。選擇Y返回主菜單,選擇N退出。 此程序的不足之處是基本信息方面還不夠完善,譬如沒有保質(zhì)期,銷售狀況等方面的信息。需要執(zhí)行操作的提示語不夠具體和完善。此外,可以在編程時加一些必要的提示語,如“輸入完畢,是否確認”、“是否繼續(xù)”等。首先,我花費了三、四天時間寫程序,以后的大多數(shù)時間就在調(diào)程序。這讓我明白“宏觀主宰全局,細節(jié)決定成敗”的道理,即使是小到一個分號也有可能使你的程序無法運行。程序的關(guān)鍵在于調(diào)試程序。在這次的學(xué)習(xí)中我學(xué)會了如何寫一個好程序,在老師和其他同學(xué)的的幫助下我學(xué)會了如何調(diào)試,如何查找系統(tǒng)沒有提示的錯誤,最后終于排除萬難把程序搞定。感謝老師和同學(xué)的幫助,讓我成功完成了課程設(shè)計。八.附錄:源代碼(電子版)includeincludeincludeincludeincludeincludedefine L sizeof(struct goods)void wele()。 int menu1()。int select1( )。struct goods *readfile()。struct goods *input(void)。struct goods *delet(struct goods *p0)。void Sort()。struct goods *sort2(struct goods *head)。int find(struct goods *p)。 struct goods //商品結(jié)構(gòu)體//{ int number。 char type[10]。 int amount。}。void main() //主函數(shù)//{ system(color 37)。}void wele(){ char ch。 //歡迎界面,進入主菜單欄 printf( ★★★★★★★★★★★★★★★★★★★★\n\n)。 printf( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n)。 printf( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n)。 printf( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n)。 printf( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n)。 printf( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n)。 printf( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n)。 printf( 班級:計科1103\n)。 printf( ★★★★★★★★★★★★★★★★★★★★ \n)。 ch=getch()。 if(ch) { printf(\n\n)。 }}void Menu() //主菜單,進行工作人員或顧客的選擇{ int m。 char code2[7]=654321,t[7]。 printf(\n\n\n ★★★★★★★★★★★★★★★★★★★★ \n\n)。 printf( 。 printf( 。 printf( !\n\n)。 scanf(%d,amp。 printf(\n ★★★★★★★★★★★★★★★★★★★★ \n\n)。 flushall()。 for(i=0。i++) { if(strcmp(code1,s)==0) { system(cls)。 } else { printf(\t\t錯誤!重新輸入: )。 if(i==1) { printf(\t\t輸入錯誤密碼已有3次,強行退出系統(tǒng)。 break。 flushall()。 for(i=0。i++) { if(strcmp(code2,t)==0) { system(cls)。 } else { printf(\t\t錯誤!重新輸入: )。 if(i==1) { printf(\t\t輸入錯誤密碼已有3次,強行退出系統(tǒng)。 break。}int menu1() //菜單欄1,工作人員管理系統(tǒng),{ printf(\n\n\n 歡迎進入工作人員管理系統(tǒng)\n\n)。 printf( 1. 商品信息錄入.\n)。 printf( 3. 商品刪除.\n)。 printf( 5. 商品排序.\n)。 printf( 7. 商品查找.\n)。 printf( 請選擇您要的操作(1~8): )。 return(0)。 printf( 尊敬的顧客,歡迎您使用該系統(tǒng),希望您能滿意GAN超市的服務(wù)!\n\n)。 printf( 5. 商品排序.\n)。 printf( 7. 商品查找.\n)。 printf( 請選擇您要的操作(5~8): )。 return(0)。 char ch。 head=NULL。a)。head=input()。system(cls)。break。head=readfile()。savefile(head)。system(cls)。break。head=readfile()。savefile(head)。system(cls)。 break。 head=readfile()。savefile(head)。system(cls)。 break。Sort()。break。printf(\n\n\t\t\t\t 統(tǒng)計\n\n)。print(head)。)。system(cls)。 break。 head=readfile()。ch=getch()。menu1()。 // 7 查找 case 8: system(cls)。 break。select1()。}int select2() //選擇函數(shù)//{ int b。 struct goods *head。 scanf(%d,amp。 switch(b) { case 5: system(cls)。menu2()。 // 5 排序 case 6: system(cls)。head=readfile()。 printf(\n\n\t\t\t按任意鍵返回菜單。ch=getch()。menu2()。 // 6 統(tǒng)計 cas
點擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1