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

正文內(nèi)容

c語(yǔ)言銷(xiāo)售管理系統(tǒng)-文庫(kù)吧

2024-11-26 14:55 本頁(yè)面


【正文】 ak。 case 2: printf(銷(xiāo)售員信息顯示 \n)。 show()。 break。 case 3: printf(銷(xiāo)售額信息保存 \n)。 save()。break。 case 4: printf(總銷(xiāo)售額信息排序 \n)。 sort()。break。 case 5: printf(統(tǒng)計(jì)產(chǎn)品銷(xiāo)售額信息 \n)。 statistics_sailer()。break。 case 6: printf(插入銷(xiāo)售員及其信息 \n)。 insert()。break。 case 7: printf(刪除銷(xiāo)售員及其信息 \n)。 del()。break。 default:printf(輸入錯(cuò)誤 ,請(qǐng)重新選擇 !!)。 break。 } } } (2) 錄入函數(shù) void inprint ()的實(shí)現(xiàn):由主菜單按‘ 1’鍵進(jìn)入。利用循環(huán)方式,將相關(guān)信息存入結(jié)構(gòu)體數(shù)組,結(jié)構(gòu)體組根據(jù)實(shí)際的紀(jì)錄條數(shù),建立銷(xiāo)售員信息。按照要求,分步依次錄入信息:銷(xiāo)售員個(gè)數(shù),銷(xiāo)售員姓名,銷(xiāo)售員工號(hào),產(chǎn)品一銷(xiāo)售額,產(chǎn)品二銷(xiāo)售額,實(shí)現(xiàn)途徑為 : void input() { int i。 printf(請(qǐng)輸入銷(xiāo)售員個(gè)數(shù) \n)。 scanf(%d,amp。n)。 for(i=0。in。i++) { printf(輸入銷(xiāo)售員姓名 :\n)。 scanf(%s,seller[i].name)。 printf(輸入銷(xiāo)售員工號(hào) :\n)。 scanf(%s,seller[i].num)。 printf(請(qǐng)分別輸入產(chǎn)品一和產(chǎn)品二的銷(xiāo)售額 :\n)。 scanf(%d%d,amp。seller[i].sailerl,amp。seller[i].sailerm)。 } system(cls)。 } (3) 顯示函數(shù) void show()的實(shí)現(xiàn):該功能是輸出 銷(xiāo)售員 中的所有信息 : void show () { struct seller *p。 system(cls)。 printf(姓名 工號(hào) 產(chǎn)品一銷(xiāo)售額 產(chǎn)品二銷(xiāo)售額 :\n)。 for(p=seller。pseller+n。p++) printf(%8s %2s %6d %12d\n,pname,pnum,psailerl,psailerm)。 printf(\n\n)。 } ( 4) 排序函數(shù) void sort()的實(shí)現(xiàn): void sort() { struct seller temp。 int i,j。 for(i=0。in。i++) seller[i].sum=seller[i].sailerl+seller[i].sailerm。 for(j=0。jn1。j++) for(i=0。in1j。i++) if(seller[i].sumseller[i+1].sum) { temp=seller[i]。 seller[i]=seller[i+1]。 seller[i+1]=temp。 } system(cls)。 printf(姓名 工號(hào) 產(chǎn)品一銷(xiāo)售額 產(chǎn)品二銷(xiāo)售額 產(chǎn)品總銷(xiāo)售額 :\n)。 for(i=0。in。i++) printf(\n%s\t%s\t%d\t%8d\t%8d\n,seller[i].name,seller[i].num,seller[i].sailerl,seller[i].sailerm,seller[i].sum)。 } ( 5)統(tǒng)計(jì)函數(shù) void statistics_sailer ()的實(shí)現(xiàn):運(yùn)用的語(yǔ)句是: void statistics_sailer () { int i,sum1,sum2,sum。 sum1=0。sum2=0。sum=0。 for(i=0。in。i++) { sum1+=seller[i].sailerl。 sum2+=seller[i].sailerm。 sum=sum1+sum2。 } system(cls)。 printf(產(chǎn)品一的銷(xiāo)售額 :%d\n,sum1)。 printf(產(chǎn)品二的銷(xiāo)售額 :%d\n,sum2)。 printf(產(chǎn)品總的銷(xiāo)售額 :%d\n,sum)。 } ( 6)保 存函數(shù) void save ()運(yùn)用以下語(yǔ)句實(shí)現(xiàn): void save () { FILE *fp。 int i。 fp=fopen(,w)。 for(i=0。in。
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報(bào)告相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1