欢迎来到天天文库
浏览记录
ID:39453855
大小:58.01 KB
页数:9页
时间:2019-07-03
《C++职工工资管理系统代码》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、#include#include#includeusingnamespacestd;classzhigong{public:voidsetnumber(intn){number=n;}voidsetname(char*na){strcpy(name,na);}voidsetbumen(char*bu){strcpy(bumen,bu);}intgetnumber(){returnnumber;}char*getname(){returnname;}c
2、har*getbumen(){returnbumen;}voidsetzhigong(){cout<<"请输入职工所在部门:";cin>>bumen;cout<<"请输入职工编号:";cin>>number;cout<<"请输入职工姓名:";cin>>name;}private:intnumber;charname[20];charbumen[20];};classgongzi{public:voidsetgangwei(doubleg){gangwei=g;}voidsetjintie(doublej
3、){jintie=j;}voidsetyiliao(doubley){yiliao=y;}voidsetshuidian(doubles){shuidian=s;}doublegetgangwei(){returngangwei;}doublegetjintie(){returnjintie;}doublegetyilao(){returnyiliao;}doublegetshuidian(){returnshuidian;}doublegetyingfa(){return(gangwei+jintie
4、);}doublegetshifa(){return(gangwei+jintie-shuidian-yiliao);}voidsetgongzi(){cout<<"请输入所得岗位工资:";cin>>gangwei;cout<<"请输入所得岗位津贴:";cin>>jintie;cout<<"请输入所需缴纳的水电费:";cin>>shuidian;cout<<"请输入所需要交纳的医疗保险费:";cin>>yiliao;}private:doublegangwei;doublejintie;doubleyi
5、liao;doubleshuidian;};classzhigongzi:publiczhigong,publicgongzi{public:voidsetzhigongzi(){setzhigong();setgongzi();}};voidmenu(){cout<<"***********************************************************************"<6、系统(小蛇制作)-----------------------------"<7、工资**"<8、<>p;}returni+1;}ofile.close();}intt,number;doublegangwei;doublej
6、系统(小蛇制作)-----------------------------"<7、工资**"<8、<>p;}returni+1;}ofile.close();}intt,number;doublegangwei;doublej
7、工资**"<8、<>p;}returni+1;}ofile.close();}intt,number;doublegangwei;doublej
8、<>p;}returni+1;}ofile.close();}intt,number;doublegangwei;doublej
此文档下载收益归作者所有