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

正文內(nèi)容

c語言課程設(shè)計(jì)--銷售管理系統(tǒng)-資料下載頁

2025-06-06 09:22本頁面
  

【正文】 {fscanf(fp,%d%d%d,amp。gs[i].emp,amp。gs[i].num,amp。gs[i].price)。 if((k+1)==gs[i].num) sum[j]=sum[j]+gs[i].price。 i++。 } printf( goodsNo.%4d |totalprice:%10d\n,(k+1),sum[j])。 } } for(j=0。jM。j++) su=su+sum[j]。 printf( total is%d\n,su)。 } fclose(fp)。 printf(press any key back\n)。 getch()。 } /*清空文件函數(shù) 調(diào)試成功 */ function6()/*清空文件函數(shù) */ {FILE *fp1。 printf(\n\nplease wait!..........\n)。 fp1=fopen(c:\\tc\\employee1,w)。 if((fp1=fopen(c:\\tc\\employee1,w)==NULL))/*新建文件 */ { printf(My soft in your puter have error!\n)。 printf(Now please exit\n)。 exit(1)。 } else printf(\n\n Ok \n)。 fclose(fp1)。 printf(press any key back\n)。 getch()。 } /*輸出表格函數(shù) 調(diào)試成功 */ function7() {int t,s。 int a[N][M]。 FILE *fp。 int i=0,j=0,sum,k。 fp=fopen(c:\\tc\\employee1,r+)。 printf(table of the statistics of the sale\n)。 printf( the number of the goods the total\n)。 printf(employee39。s number 1 2 3 4 5 \n)。 for(j=0。jN。j++) /*員工數(shù) */ {for(k=0。kM。k++) /*商品數(shù) */ {sum=0。 t=0。 for(i=0。iT。) /*掃描便條數(shù) */ {fscanf(fp,%d%d%d,amp。gs[i].emp,amp。gs[i].num,amp。gs[i].price)。 if((j+1)==gs[i].empamp。amp。(k+1)==gs[i].num) sum=sum+gs[i].price。 i++。 5 } a[k][t++]=sum。 }s=0。 for(t=0。tM。t++) { s=s+a[k][t]。 } a[k][M]=s。 printf(%5d,j+1)。 for(t=0。t=M。t++) printf(%8d,a[k][t])。 printf(\n)。 } } /*個(gè)人排序函數(shù) 調(diào)試成功 */ void functionpaixu() {int i,j,r。 printf(\nNow ordered / by sales\n)。 for(i=0。iN。i++) {for(j=i+1。jN。j++) if(emp[i].sumemp[j].sum) {work=emp[i]。 emp[i]=emp[j]。 emp[j]=work。 } } for(r=0。rN。r++) printf( employee39。sNo.%3d |totalprice:%10d\n,emp[r].num,emp[r].sum)。 /*打印數(shù)據(jù) */ } /*....................................主函數(shù) .........................................*/ main() /*主函數(shù) */ {int flag。 loop2: print1()。 flag=select()。 if(flag==1) {clrscr()。 function1()。 /*數(shù)據(jù)的輸入 */ clrscr()。 goto loop2。} if(flag==2) {clrscr()。 function2()。 /*每個(gè)人的每種產(chǎn)品的統(tǒng)計(jì) */ goto loop2。} if(flag==3) {clrscr()。 function3()。 /*按照銷售額對售員排序函數(shù) */ goto loop2。} if(flag==4) {clrscr()。 function4()。 /*每種產(chǎn)品的總額 排序 */ goto loop2。} if(flag==5) {clrscr()。 function5()。 /*統(tǒng)計(jì)報(bào)表 */ goto loop2。} if(flag==6) {clrscr()。 function6()。 goto loop2。} if(flag==7) {clrscr()。 function7()。 goto loop2。 } }
點(diǎn)擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計(jì)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1