员工销售业绩统计系统

员工销售业绩统计系统

ID:16799738

大小:35.00 KB

页数:8页

时间:2018-08-24

上传者:U-5097
员工销售业绩统计系统_第1页
员工销售业绩统计系统_第2页
员工销售业绩统计系统_第3页
员工销售业绩统计系统_第4页
员工销售业绩统计系统_第5页
资源描述:

《员工销售业绩统计系统》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库

员工销售业绩统计系统课程设#include#include#includecharrank[20],name[10],m[10];inti,add[20],s;structworker{charname[10];intsex;intfirst;intsecond;intthird;intfourth;}wor[20];voidb(){inti,j,t;chara,c;printf("请输入如何找到欲修改记录的方式: ");printf("1.按姓名 ");printf("2.按排名 ");scanf("%s",&a);if(a=='1'){printf("请输入要修改的员工姓名 ");scanf("%s",name);for(i=0;i<20;i++)if(strcmp(wor[i].name,name)==0){printf("姓名t性别t一季度t二季度t三季度t四季度t总业绩t平均 ");printf("%st",wor[i].name);printf("%dt",wor[i].sex);printf("%dt",wor[i].first);printf("%dt",wor[i].second);printf("%dt",wor[i].third);printf("%dt",wor[i].fourth);add[i]=wor[i].first+wor[i].second+wor[i].third+wor[i].fourth;printf("%dt",add[i]);printf("%d ",add[i]/4);printf("确定要修改这员工的信息吗?(y/n) ");scanf("%s",&c);if(c=='y'){printf("请输入姓名:");scanf("%s",wor[i].name);theprovisionsofelectricpowerconstructionengineeringqualitysupervisionandquality...2.4.1.1theunitworksacceptancerateof100%,thequalityevaluationofatotalscoreof95orabove;2.4.1.2regulatedWeldingNDTinspection100%,regulatedweldingapassingrateof>99%,andweldbeadappearance;2.4.1.3boilerhydraulic printf("请输入性别(1为女,2为男):");scanf("%d",&wor[i].sex);printf("请输入一季度业绩:");scanf("%d",&wor[i].first);printf("请输入二季度业绩:");scanf("%d",&wor[i].second);printf("请输入三季度业绩:");scanf("%d",&wor[i].third);printf("请输入四季度业绩:");scanf("%d",&wor[i].fourth);}}}if(a=='2'){for(j=0;j99%,andweldbeadappearance;2.4.1.3boilerhydraulic printf("请输入二季度业绩:");scanf("%d",&wor[i].second);printf("请输入三季度业绩:");scanf("%d",&wor[i].third);printf("请输入四季度业绩:");scanf("%d",&wor[i].fourth);}}}}voidc(){inti;for(i=0;i99%,andweldbeadappearance;2.4.1.3boilerhydraulic printf("%dt",wor[i].fourth);printf("%dt",add[i]);printf("%d ",add[i]/4);}}if(a=='2'){for(j=0;j");scanf("%s",&b);if(b=='1')gotodr;}voide(){chara,b,c,name[10];inti,j,t;er:printf("请输入如何找到欲删除的记录方式: ");printf("1.按姓名");printf("2.按排名");scanf("%s",&a);if(a=='1'){theprovisionsofelectricpowerconstructionengineeringqualitysupervisionandquality...2.4.1.1theunitworksacceptancerateof100%,thequalityevaluationofatotalscoreof95orabove;2.4.1.2regulatedWeldingNDTinspection100%,regulatedweldingapassingrateof>99%,andweldbeadappearance;2.4.1.3boilerhydraulic printf("请输入要删除员工的名字:");scanf("%s",name);for(i=0;i<20;i++)if(strcmp(wor[i].name,name)==0){printf("姓名t");printf("性别t");printf("一季度t");printf("二季度t");printf("三季度t");printf("四季度t");printf("总业绩t");printf("平均 ");printf("%st",wor[i].name);printf("%dt",wor[i].sex);printf("%dt",wor[i].first);printf("%dt",wor[i].second);printf("%dt",wor[i].third);printf("%dt",wor[i].fourth);printf("%dt",add[i]);printf("%d ",add[i]/4);printf("是否删除此人(y/n) ");scanf("%s",&b);if(b=='y'){for(;i<20;i++)wor[i]=wor[i+1];}}}if(a=='2'){for(j=0;j99%,andweldbeadappearance;2.4.1.3boilerhydraulic printf("二季度t");printf("三季度t");printf("四季度t");printf("总业绩t");printf("平均 ");printf("%st",wor[i].name);printf("%dt",wor[i].sex);printf("%dt",wor[i].first);printf("%dt",wor[i].second);printf("%dt",wor[i].third);printf("%dt",wor[i].fourth);printf("%dt",add[i]);printf("%d ",add[i]/4);printf("是否删除此人(y/n) ");scanf("%s",&b);if(b=='y'){for(;i<20;i++)wor[i]=wor[i+1];}}}printf("是否继续删除其他员工信息");scanf("%s",&c);if(c=='y'){gotoer;}}voidf(){inti,j,t;for(j=0;j99%,andweldbeadappearance;2.4.1.3boilerhydraulic printf("三季度t");printf("四季度t");printf("总业绩t");printf("平均 ");printf("%st",wor[i].name);printf("%dt",wor[i].sex);printf("%dt",wor[i].first);printf("%dt",wor[i].second);printf("%dt",wor[i].third);printf("%dt",wor[i].fourth);printf("%dt",add[i]);printf("%d ",add[i]/4);}}voidmain(){intn;chara;s=0;printf("原来没有记录现在建立新表 ");a:printf("您是否需要添加一组信息? ");scanf("%s",&a);while(a=='y'){printf("请输入姓名:");scanf("%s",wor[s].name);printf("请输入性别<1为女,2为男>:");scanf("%d",&wor[s].sex);printf("请输入一季度业绩:");scanf("%d",&wor[s].first);printf("请输入二季度业绩:");scanf("%d",&wor[s].second);printf("请输入三季度业绩:");scanf("%d",&wor[s].third);printf("请输入四季度业绩:");scanf("%d",&wor[s].fourth);add[s]=wor[s].first+wor[s].second+wor[s].third+wor[s].fourth;printf("您是否需要继续添加一组信息? ");scanf("%s",&a);s++;}printf("现在一共有%d条记录信息 ",s);theprovisionsofelectricpowerconstructionengineeringqualitysupervisionandquality...2.4.1.1theunitworksacceptancerateof100%,thequalityevaluationofatotalscoreof95orabove;2.4.1.2regulatedWeldingNDTinspection100%,regulatedweldingapassingrateof>99%,andweldbeadappearance;2.4.1.3boilerhydraulic r:printf("-------------------------------------------- ");printf("-1.修改员工业绩- ");printf("-2.显示员工业绩- ");printf("-3.查询员工业绩- ");printf("-4.删除员工业绩- ");printf("-5.对员工业绩信息进行排序- ");printf("-6.增加记录- ");printf("-7.结束运行- ");printf("-------------------------------------------- ");printf("左边数字对应功能选择,请选择1-7: ");scanf("%d",&n);switch(n){case1:b();gotor;case2:c();gotor;case3:d();gotor;case4:e();gotor;case5:f();gotor;case6:gotoa;case7:break;}}theprovisionsofelectricpowerconstructionengineeringqualitysupervisionandquality...2.4.1.1theunitworksacceptancerateof100%,thequalityevaluationofatotalscoreof95orabove;2.4.1.2regulatedWeldingNDTinspection100%,regulatedweldingapassingrateof>99%,andweldbeadappearance;2.4.1.3boilerhydraulic

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。
关闭