欢迎来到天天文库
浏览记录
ID:32701207
大小:70.76 KB
页数:9页
时间:2019-02-14
《超市货单管理程序》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、2•出列向超//Note:YourchoiceisC++IDE#includeusingnamespacestd:#defineN5intmain()inti;intlist[N];〃讳鏑入"<2、0口七0厂de厂[i]-l]+outo厂。8厂[(3、)%4、0门9*;intk;for(k=outorder[i]-1;k5、list[k]=list[k4-l];length__:}/*for(i=0;i#include6、tdio.h>#includevoidmain(void)Istructgoods)//立比传枸体intID:charname[l5];intinprice;intoutprice;intinamount:intoutamount;intmonthprofit;structgoodscargo[5]=i{「shirt",45,80.8070,0k{2."sho厂ts〃,60,9045.35.0L{3・〃sneol7、4/zbasballl20.180.20J8.0i.l5/zfOtbair90J60,25J6.0istr8、uctclerk//店冕儁区信念charnumber;intsell[5];//Z种高器的§出蚤doubletip[5];doublealltip:structclerkworker[3]=9、10、/A/j20J0J5,6Al0L011、>¥b:{30,1287.4.{012、qL13、zC{20.13.5.5.8(.14、0!.015、inti;intj;for(i=0;i<3;汁+)//艮缶个疟曷的摆成for(j=0;j<5;j++))worker[i].tipLj]=(cargo[j].outprice-cargo[j].inprice)*worker[i].sell[j]*0.05;worker16、[i].alltip+=worker[i].tip[j];(intx;//诂叉月到•:狗for(x=0;x<5;x++)cargo[x].monthprofit=cargo[x].outamountM(cargo[x].outprice-cargo[x].inprice):cout«w^.迄幼超希辺營5神侖焰,尙禺和%层分别^:w«endl;//超吩作况简金cout«r,1shirt.2shorts.3sneaker.4basball.5fotball,,«endl;coutVC"盘神奇器拥有7神传您:编君,2禺,逵价,幺价,逡侈邂,幺出蚤,M^^/,«endl:cout«endl17、;coutWg超诒侖促縞园32,代居分别乃A,B,C^«endl;cout«endl:intsign1=1;cout«r,竭下列&癒及字you厂choose,空珈対应妙能:,z«endl://用户可逸择的功能cout«w1一一一篩入诵琴卷找商務传念/,«/,,,«,,5一——#出斫侖促統员的統18、oose;cout«endl;cout«/zyourchoose=z,:cin»yourchoose:if(yourchoose==1)cocrtW希鑰入需聂泰找的禹器的尙居((11到5之向):z,«endl:inti;intj;intp=O;cin>>i;for(j=0:J<5;J++)if(cargo[j].ID==i)]cout«wa君z/«wt//«//名範”《!、£«"逍价yvty<"a^w«wtz/«w逬fw«z,tw«w
2、0口七0厂de厂[i]-l]+outo厂。8厂[(
3、)%
4、0门9*;intk;for(k=outorder[i]-1;k5、list[k]=list[k4-l];length__:}/*for(i=0;i#include6、tdio.h>#includevoidmain(void)Istructgoods)//立比传枸体intID:charname[l5];intinprice;intoutprice;intinamount:intoutamount;intmonthprofit;structgoodscargo[5]=i{「shirt",45,80.8070,0k{2."sho厂ts〃,60,9045.35.0L{3・〃sneol7、4/zbasballl20.180.20J8.0i.l5/zfOtbair90J60,25J6.0istr8、uctclerk//店冕儁区信念charnumber;intsell[5];//Z种高器的§出蚤doubletip[5];doublealltip:structclerkworker[3]=9、10、/A/j20J0J5,6Al0L011、>¥b:{30,1287.4.{012、qL13、zC{20.13.5.5.8(.14、0!.015、inti;intj;for(i=0;i<3;汁+)//艮缶个疟曷的摆成for(j=0;j<5;j++))worker[i].tipLj]=(cargo[j].outprice-cargo[j].inprice)*worker[i].sell[j]*0.05;worker16、[i].alltip+=worker[i].tip[j];(intx;//诂叉月到•:狗for(x=0;x<5;x++)cargo[x].monthprofit=cargo[x].outamountM(cargo[x].outprice-cargo[x].inprice):cout«w^.迄幼超希辺營5神侖焰,尙禺和%层分别^:w«endl;//超吩作况简金cout«r,1shirt.2shorts.3sneaker.4basball.5fotball,,«endl;coutVC"盘神奇器拥有7神传您:编君,2禺,逵价,幺价,逡侈邂,幺出蚤,M^^/,«endl:cout«endl17、;coutWg超诒侖促縞园32,代居分别乃A,B,C^«endl;cout«endl:intsign1=1;cout«r,竭下列&癒及字you厂choose,空珈対应妙能:,z«endl://用户可逸择的功能cout«w1一一一篩入诵琴卷找商務传念/,«/,,,«,,5一——#出斫侖促統员的統18、oose;cout«endl;cout«/zyourchoose=z,:cin»yourchoose:if(yourchoose==1)cocrtW希鑰入需聂泰找的禹器的尙居((11到5之向):z,«endl:inti;intj;intp=O;cin>>i;for(j=0:J<5;J++)if(cargo[j].ID==i)]cout«wa君z/«wt//«//名範”《!、£«"逍价yvty<"a^w«wtz/«w逬fw«z,tw«w
5、list[k]=list[k4-l];length__:}/*for(i=0;i#include6、tdio.h>#includevoidmain(void)Istructgoods)//立比传枸体intID:charname[l5];intinprice;intoutprice;intinamount:intoutamount;intmonthprofit;structgoodscargo[5]=i{「shirt",45,80.8070,0k{2."sho厂ts〃,60,9045.35.0L{3・〃sneol7、4/zbasballl20.180.20J8.0i.l5/zfOtbair90J60,25J6.0istr8、uctclerk//店冕儁区信念charnumber;intsell[5];//Z种高器的§出蚤doubletip[5];doublealltip:structclerkworker[3]=9、10、/A/j20J0J5,6Al0L011、>¥b:{30,1287.4.{012、qL13、zC{20.13.5.5.8(.14、0!.015、inti;intj;for(i=0;i<3;汁+)//艮缶个疟曷的摆成for(j=0;j<5;j++))worker[i].tipLj]=(cargo[j].outprice-cargo[j].inprice)*worker[i].sell[j]*0.05;worker16、[i].alltip+=worker[i].tip[j];(intx;//诂叉月到•:狗for(x=0;x<5;x++)cargo[x].monthprofit=cargo[x].outamountM(cargo[x].outprice-cargo[x].inprice):cout«w^.迄幼超希辺營5神侖焰,尙禺和%层分别^:w«endl;//超吩作况简金cout«r,1shirt.2shorts.3sneaker.4basball.5fotball,,«endl;coutVC"盘神奇器拥有7神传您:编君,2禺,逵价,幺价,逡侈邂,幺出蚤,M^^/,«endl:cout«endl17、;coutWg超诒侖促縞园32,代居分别乃A,B,C^«endl;cout«endl:intsign1=1;cout«r,竭下列&癒及字you厂choose,空珈対应妙能:,z«endl://用户可逸择的功能cout«w1一一一篩入诵琴卷找商務传念/,«/,,,«,,5一——#出斫侖促統员的統18、oose;cout«endl;cout«/zyourchoose=z,:cin»yourchoose:if(yourchoose==1)cocrtW希鑰入需聂泰找的禹器的尙居((11到5之向):z,«endl:inti;intj;intp=O;cin>>i;for(j=0:J<5;J++)if(cargo[j].ID==i)]cout«wa君z/«wt//«//名範”《!、£«"逍价yvty<"a^w«wtz/«w逬fw«z,tw«w
6、tdio.h>#includevoidmain(void)Istructgoods)//立比传枸体intID:charname[l5];intinprice;intoutprice;intinamount:intoutamount;intmonthprofit;structgoodscargo[5]=i{「shirt",45,80.8070,0k{2."sho厂ts〃,60,9045.35.0L{3・〃sneol7、4/zbasballl20.180.20J8.0i.l5/zfOtbair90J60,25J6.0istr8、uctclerk//店冕儁区信念charnumber;intsell[5];//Z种高器的§出蚤doubletip[5];doublealltip:structclerkworker[3]=9、10、/A/j20J0J5,6Al0L011、>¥b:{30,1287.4.{012、qL13、zC{20.13.5.5.8(.14、0!.015、inti;intj;for(i=0;i<3;汁+)//艮缶个疟曷的摆成for(j=0;j<5;j++))worker[i].tipLj]=(cargo[j].outprice-cargo[j].inprice)*worker[i].sell[j]*0.05;worker16、[i].alltip+=worker[i].tip[j];(intx;//诂叉月到•:狗for(x=0;x<5;x++)cargo[x].monthprofit=cargo[x].outamountM(cargo[x].outprice-cargo[x].inprice):cout«w^.迄幼超希辺營5神侖焰,尙禺和%层分别^:w«endl;//超吩作况简金cout«r,1shirt.2shorts.3sneaker.4basball.5fotball,,«endl;coutVC"盘神奇器拥有7神传您:编君,2禺,逵价,幺价,逡侈邂,幺出蚤,M^^/,«endl:cout«endl17、;coutWg超诒侖促縞园32,代居分别乃A,B,C^«endl;cout«endl:intsign1=1;cout«r,竭下列&癒及字you厂choose,空珈対应妙能:,z«endl://用户可逸择的功能cout«w1一一一篩入诵琴卷找商務传念/,«/,,,«,,5一——#出斫侖促統员的統18、oose;cout«endl;cout«/zyourchoose=z,:cin»yourchoose:if(yourchoose==1)cocrtW希鑰入需聂泰找的禹器的尙居((11到5之向):z,«endl:inti;intj;intp=O;cin>>i;for(j=0:J<5;J++)if(cargo[j].ID==i)]cout«wa君z/«wt//«//名範”《!、£«"逍价yvty<"a^w«wtz/«w逬fw«z,tw«w
7、4/zbasballl20.180.20J8.0i.l5/zfOtbair90J60,25J6.0istr
8、uctclerk//店冕儁区信念charnumber;intsell[5];//Z种高器的§出蚤doubletip[5];doublealltip:structclerkworker[3]=
9、
10、/A/j20J0J5,6Al0L0
11、>¥b:{30,1287.4.{0
12、qL
13、zC{20.13.5.5.8(.
14、0!.0
15、inti;intj;for(i=0;i<3;汁+)//艮缶个疟曷的摆成for(j=0;j<5;j++))worker[i].tipLj]=(cargo[j].outprice-cargo[j].inprice)*worker[i].sell[j]*0.05;worker
16、[i].alltip+=worker[i].tip[j];(intx;//诂叉月到•:狗for(x=0;x<5;x++)cargo[x].monthprofit=cargo[x].outamountM(cargo[x].outprice-cargo[x].inprice):cout«w^.迄幼超希辺營5神侖焰,尙禺和%层分别^:w«endl;//超吩作况简金cout«r,1shirt.2shorts.3sneaker.4basball.5fotball,,«endl;coutVC"盘神奇器拥有7神传您:编君,2禺,逵价,幺价,逡侈邂,幺出蚤,M^^/,«endl:cout«endl
17、;coutWg超诒侖促縞园32,代居分别乃A,B,C^«endl;cout«endl:intsign1=1;cout«r,竭下列&癒及字you厂choose,空珈対应妙能:,z«endl://用户可逸择的功能cout«w1一一一篩入诵琴卷找商務传念/,«/,,,«,,5一——#出斫侖促統员的統
18、oose;cout«endl;cout«/zyourchoose=z,:cin»yourchoose:if(yourchoose==1)cocrtW希鑰入需聂泰找的禹器的尙居((11到5之向):z,«endl:inti;intj;intp=O;cin>>i;for(j=0:J<5;J++)if(cargo[j].ID==i)]cout«wa君z/«wt//«//名範”《!、£«"逍价yvty<"a^w«wtz/«w逬fw«z,tw«w
此文档下载收益归作者所有