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

正文內(nèi)容

c課程設(shè)計(jì)報(bào)告-超市管理系統(tǒng)(文件)

2025-04-29 22:18 上一頁面

下一頁面
 

【正文】 請登錄:\n\n)。\n\n)。m)。 gets(s)。 menu1()。\n)。 gets(t)。 menu2()。\n)。 printf( 進(jìn)行以下操作時(shí),請保持仔細(xì)和認(rèn)真!\n\n)。 printf( 4. 商品增加.\n)。 printf( 8. 退出系統(tǒng)!\n\n)。}int menu2() //菜單欄2,顧客管理系統(tǒng){ printf(\n\n\n\n 歡迎進(jìn)入顧客管理系統(tǒng)!\n\n)。 printf( 6. 商品統(tǒng)計(jì).\n)。 select2()。 struct goods *head。 switch(a) { case 1: system(cls)。menu1()。modify(head)。menu1()。head=delet(head)。menu1()。head=add(head)。 menu1()。menu1()。head=readfile()。ch=getch()。 // 6 統(tǒng)計(jì) case 7: system(cls)。system(cls)。finish()。 } return(a)。 head=NULL。Sort()。printf(\n\n\t\t\t\t 統(tǒng)計(jì)\n\n)。)。 break。ch=getch()。 // 7 查找 case 8: system(cls)。select2()。 struct goods *head。 p2=head。p1number)。 scanf(%s,p1type)。 printf(\t\t\t 數(shù)量:)。 p2=p1。p1number)。 printf(\t\t\t 類型:)。p1price)。 } p2next=NULL。 ch=getch()。 struct goods *p。 printf(\n請輸入要修改商品的貨號(hào): )。 printf(\n\t 請選擇: )。 scanf(%d,amp。 } else if(n==3) { printf(\t\t 請重新輸入類型: )。pprice)。 } printf(\n修改后的商品信息:)。 } else p=pnext。}struct goods *delet(struct goods *head){ struct goods *p,*p2。 printf(請輸入你要?jiǎng)h除的商品貨號(hào): )。 while(pnumber!=aamp。 } if(pnumber==a) { if(p==head) head=pnext。 printf(\n輸入任意鍵返回菜單。 printf(\n輸入任意鍵返回菜單。 printf(\n\n\t\t請輸入要添加的商品信息:\n)。p3number)。 scanf(%s,p3type)。 printf(\t\t 請輸入數(shù)量: )。 while(1) { if(pnext!=NULL) p=pnext。)。 char ch。 printf( 。 printf( 請選擇: )。 system(cls)。 ch=getch()。 savefile(head)。 //價(jià)格排序 h=headnext。 p = pnext) for(q = pnext。 *q = t。 } print(head)。} struct goods *sort2(struct goods *head) { struct goods *p, *h, *q, *temp, t。 p。 *p = *q。 qnext = temp。 return head。 printf(\t\\n\t\)。 if(b==1) { printf(\n輸入你要查詢的商品貨號(hào): )。 p=headnext。 } p=pnext。 scanf(%d,amp。 break。)。 fp=fopen(,wt)。 } fclose(fp)。 while(p1!=NULL) { printf(\t\t\t %d %s %s %d %d\n,p1number,p1name,p1type,p1price,p1amount)。 FILE *fp。 p2=head。pprice,amp。 } p2next=NULL。 int b=1。 printf(\t ~~~~~~~~~~~~%% %%~~~~~~~~~~~~~~\n)。 printf(\t ~~~~~~~~~~~~%% %%~~~~~~~~~~~~~~\n)。 printf( \n\n\t Y: 是。退出系統(tǒng)。 a=getchar()。 Menu()。 } else { printf(\t\t\t輸入錯(cuò)誤代號(hào)!請重新輸入: )。 } }while(b==0)。 flushall()。N39。Y39。 printf(\t\t\t)。 )。 printf(\t ~~~~~~~~~~~~~~~~%% %%~~~~~~~~~~~~~~~~~~\n)。 printf(\t ~~~~~~~~%% 謝謝使用! %%~~~~~~~~~~\n)。 printf(\t ~~~~~~~~~~~~~~~~%% %%~~~~~~~~~~~~~~~~~~\n)。 return head。 p2next=p。 fscanf(fp,%d %s %s %d %d\n,amp。 exit(0)。 } return 0。 p1=headnext。 while(p1!=NULL) { fprintf(fp,%d %s %s %d %d\n,p1number,p1name,p1type,p1price,p1amount)。}void savefile(struct goods *p){ FILE *fp。 } if(p==NULL) printf(\n沒有找到相關(guān)商品\n\n)。 while(p!=NULL) { if(pprice==a) { printf( \t\t貨號(hào) 名稱 類型 單價(jià)(元) 數(shù)量 )。 } if(b==2) { p=headnext。 printf(\n \t%d %s %s %d %d\n,pnumber,pname,ptype,pprice,pamount)。a)。 scanf(%d,amp。 int a,b。 printf(\n\t\t\t按任意鍵返回菜單。 temp = pnext。 q。 printf(\n\n\n\n\n\t\t\t商品按貨號(hào)排序?yàn)?\n\n)。)。 pnext = qnext。 q = qnext) if((pprice) (qprice)0) { t = *p。 for(p = h。 system(cls)。 } if(m==2) { head=readfile()。 head=sort1(head)。m)。 printf( 。 printf(\n\n\n ★★★★★★★★★★★★★★★★★★★★ \n\n)。 return(head)。 break。p3amount)。 scanf(%d,amp。 scanf(%s,p3name)。 printf(\n\t\t 請輸入貨號(hào): )。 } return(head)。 } else { printf(\n抱歉!找不到與貨號(hào)為 %d 的商品相關(guān)信息。 printf(\n貨號(hào)為 %d 的商品信息已成功刪除!\n\n,a)。pnext!=NULL)/*刪除時(shí)需要兩個(gè)變量,保證最后P指向要?jiǎng)h除結(jié)點(diǎn),P2指向前一個(gè)結(jié)點(diǎn)*/ { p2=p。a)。 printf(\n\n)。 }*/ printf(\n\n按任意鍵返回菜單。 printf(\n\t\t\t%d %s %s %d %d\n,pnumber,pname,ptype,pprice,p
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1