欢迎来到天天文库
浏览记录
ID:17001756
大小:81.50 KB
页数:34页
时间:2018-08-26
《工资管理系统源代码c》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、工资管理系统源代码c工资管理系统源代码c++.txt#include#include#include#include#includeusingnamespacestd;inti;classPerson{public:voiddisplay(){cout<<"姓名:";cin>>name;cout<<"工号:";cin>>num;while(num<=0){cout<<"请重新输入工号大于0的数:"<2、cin>>num;}}stringname;//名字intnum;};//工号classTeacher:publicPerson//教师{public:Teacher(){ints=1000;wage=s;butie1=0;}voiddisplay1();intwage;//基本工资inttime;intbutie1;intjintie1;};//课时voidTeacher::display1(){cout<<"请输入";Person::display();cout<<"请输入教师的课时(小时):";3、cin>>time;while(time<=0){cout<<"请重新输入课时大于0的数:"<>time;}}classLeader:publicPerson//领导{public:Leader(){ints=2500;intb=600;wage=s;butie=b;jintie=0;}voiddisplay1(){cout<<"请输入领导的";Person::display();}intwage;//基本工资intbutie;intjintie;};//补贴classJianzh4、i:publicTeacher,publicLeader//教师兼职领导{public:Jianzhi(intb=500):Leader(){butie=b;}voiddisplay1(){cout<<"请输入教师兼职领导的";Teacher::display();cout<<"请输入教师兼职领导的课时(小时):";cin>>time;while(time<=0){cout<<"请重新输入课时大于0的数:"<>time;}}intbutie;};//补贴Teachert[100];5、Leaderx[100];Jianzhij[100];voidshow(){cout<<"t请输入你要录入的对象:"<6、r<<"openerror!"<>b;for(i=0;i>c;if(c=='Y'7、8、c=='y'){outfile<9、dLeaderluru()//领导录入{ofstreamoutfile("领导.txt",ios::app);if(!outfile){cerr<<"openerror!"<>b;for(i=0;i>c;if(c=='Y'10、11、c=='y'){outfile<12、"<>b;for(i=0;i
2、cin>>num;}}stringname;//名字intnum;};//工号classTeacher:publicPerson//教师{public:Teacher(){ints=1000;wage=s;butie1=0;}voiddisplay1();intwage;//基本工资inttime;intbutie1;intjintie1;};//课时voidTeacher::display1(){cout<<"请输入";Person::display();cout<<"请输入教师的课时(小时):";
3、cin>>time;while(time<=0){cout<<"请重新输入课时大于0的数:"<>time;}}classLeader:publicPerson//领导{public:Leader(){ints=2500;intb=600;wage=s;butie=b;jintie=0;}voiddisplay1(){cout<<"请输入领导的";Person::display();}intwage;//基本工资intbutie;intjintie;};//补贴classJianzh
4、i:publicTeacher,publicLeader//教师兼职领导{public:Jianzhi(intb=500):Leader(){butie=b;}voiddisplay1(){cout<<"请输入教师兼职领导的";Teacher::display();cout<<"请输入教师兼职领导的课时(小时):";cin>>time;while(time<=0){cout<<"请重新输入课时大于0的数:"<>time;}}intbutie;};//补贴Teachert[100];
5、Leaderx[100];Jianzhij[100];voidshow(){cout<<"t请输入你要录入的对象:"<6、r<<"openerror!"<>b;for(i=0;i>c;if(c=='Y'7、8、c=='y'){outfile<9、dLeaderluru()//领导录入{ofstreamoutfile("领导.txt",ios::app);if(!outfile){cerr<<"openerror!"<>b;for(i=0;i>c;if(c=='Y'10、11、c=='y'){outfile<12、"<>b;for(i=0;i
6、r<<"openerror!"<>b;for(i=0;i>c;if(c=='Y'
7、
8、c=='y'){outfile<9、dLeaderluru()//领导录入{ofstreamoutfile("领导.txt",ios::app);if(!outfile){cerr<<"openerror!"<>b;for(i=0;i>c;if(c=='Y'10、11、c=='y'){outfile<12、"<>b;for(i=0;i
9、dLeaderluru()//领导录入{ofstreamoutfile("领导.txt",ios::app);if(!outfile){cerr<<"openerror!"<>b;for(i=0;i>c;if(c=='Y'
10、
11、c=='y'){outfile<12、"<>b;for(i=0;i
12、"<>b;for(i=0;i
此文档下载收益归作者所有