c课程设计-简单的工资管理系统的设计和实现内容摘要:
_all(){return Paid_all。 }。 //部门已付 }。 //比较函数 ,按不同要求排序 bool Comp_ID(YuanGong a,YuanGong b) { //比较两个员工的编号 return ()()。 } bool Comp_Salary(YuanGong a,YuanGong b) { //比较两个员工的工资 return ()()。 } void SortBySalary(int Num_D,int Num_P,DEPARTMENT *DP,YuanGong *YG) { //调用库函数 ,按工资排序 sort(YG,YG+Num_P,Comp_Salary)。 } void SortByID(int Num_D,int Num_P,DEPARTMENT *DP,YuanGong *YG) { //调用库函数 ,按编号排序 sort(YG,YG+Num_P,Comp_ID)。 } /*******主要功能函数 ************/ //在系统开始时检查是否有数据文件 ,并选择读取 void ReadFile(int amp。 Num_D,int amp。 Num_P,DEPARTMENT *DP,YuanGong *YG) { system(cls)。 char c。 //判断是否有数据文件 if( (_access(,0)==1) ) return。 cout有数据 ,是否读入 (Y/N) ?。 cinc。 if(c==39。 n39。 ||c==39。 N39。 ) {system(cls)。 return。 } int i。 int ID。 float BaseSalary。 float Reward。 //奖金 float TelephoneSubsidies。 //电话补助 float RoomCharge。 //房租 float Utilities。 //水电费 float ShouldPay。 //应付 float Paid。 //已付 ,定义为 房租 +水电费 string name,Department,str。 //开始读取文件 ,添加数 据 ifstream fin()。 for(i=0。 i10。 i++)finstr。 while(finnameIDDepartmentBaseSalaryRewardTelephoneSubsidiesRoomChargeUtilitiesShouldPayPaid) { //添加员工信息 YG[Num_P++].SET(ID,name,Department,BaseSalary,Reward,TelephoneSubsidies,RoomCharge,Utilities, BaseSalary+Reward+TelephoneSubsidies ,RoomCharge+Utilities)。 for(i=0。 iNum_D。 i++) if(Department==DP[i].GETName()) break。 //添加部门信息 DP[i].SET(Department,DP[i].GETNumOfPeople()+1,DP[i].GETShouldPay_all()+BaseSalary+Reward+TelephoneSubsidies,DP[i].GETPaid_all()+RoomCharge+Utilities)。 if(i==Num_D) Num_D++。 } ()。 cout读取完成 !!!\n。 //对文件中读取的数据按员工编号排序 SortByID(Num_D,Num_P,DP,YG)。 system(pause)。 system(cls)。 } //功能选择 int Select() { system(cls)。 cout ...............................................endlendl。 cout 菜单选项 endl。 cout endl。 cout 、实发工资 endl。 cout 、实发工资 endl。 cout endl。 cout endl。 cout endl。 cout endl。 cout endl。 cout endl。 cout 出 endlendl。 cout ...............................................endlendl。 cout 请输入你的选择 :。 int choose。 do{cinchoose。 }while(choose0||choose9)。 return choose。 } //欢迎界面 void wele() { cout\n\n\n\n\n。 cout *********************************************************************\n\nendl。 cout 欢迎来到工资管理系统的设计和实现 \n\nendl。 cout 制作者: 学号: \n\nendl。 cout 计算机科学与技术一班 \n\nendl。 cout *********************************************************************\n\n\n\n\n\n\n。 system(pause)。 } //结束界面 void end_face()//结束界面 { cout \n\n\n\n\n\n\n\t\t\t 谢谢您的使用。 \n\n\n\n\n\n。 system(pause)。 exit(0)。 } //从键盘输入 ,插入新员工信息 void InsertNEW(int amp。 Num_D,int amp。 Num_P,DEPARTMENT *DP,YuanGong *YG) { system(cls)。 int i。 char c。 int ID。 float BaseSalary。 float Reward。 //奖金 float TelephoneSubsidies。 //电话补助 float RoomCharge。 //房租 float Utilities。 //水电费 string name,Department。 cout请输入员工信息 \n 编号 :。 cinID。 cout姓名 :。 cinname。 cout部门 :。 cinDepartment。 cout基本工资 :。 cinBaseSalary。 cout奖金 :。 cinReward。 cout电话补助 :。 cinTelephoneSubsidies。 cout房租 :。 cinRoomCharge。 cout水电费 :。 cinUtilities。 //添加员工信息 YG[Num_P++].SET(ID,name,Department,BaseSalary,Reward,TelephoneSubsidies,RoomCharge,Utilities, BaseSalary+Reward+TelephoneSubsidies ,RoomCharge+Utilities)。 for(i=0。 iNum_D。 i++) if(Department==DP[i].GETName()) break。 //添加部门信息 DP[i].SET(Department,DP[i].GETNumOfPeople()+1,DP[i].GETShouldPay_all()+BaseSalary+Reward+TelephoneSubsidies,DP[i].GETPaid_all()+RoomCharge+Utilities)。 if(i==Num_D) Num_D++。 cout继续添加 ?(y 和 Y 或 n):。 cinc。 if(c==39。 y39。 ||c==39。 Y39。 ) InsertNEW(Num_D,Num_P,DP,YG)。 } //显示所有员工信息 void TypeAllPeople(int Num_P,YuanGong *YG) { system(cls)。 //检查是否有数据 if(Num_P==0) { cout没有员工信息 !!!\n。 system(pause)。 return。 } int i。 //输出员工信息。c课程设计-简单的工资管理系统的设计和实现
相关推荐
,组织专题会议。 3 会议纪要应包 括: (1)会议时间、地点、参加单位、人员和职务、会议主持人。 ( 2)会议主要内容: 1) 检查上次例会议定事项的落实情况,分析未完事项原因。 2) 检查分析工程项目进度计划完成情况,提出下一阶段进度目标及其落实措施。 3) 检查分析工程项目质量状况,针对存在的质量问题提出改进措施。 4) 检查工程量核定及工程款支付情况。 5) 解决需要协调的有关事项。
展思博公司所许可的代理业务,并遵守有关规定和业务管理; 2. 应积极维护 deitycool品牌在当地的权益; 3. 不以 deitycool品牌的名义开展任何未经批准的商务、服务、宣传的活动。 我公司申请作为 deitycool 品牌代理,愿意在当地及 周边地区代理被许可的业务。 我公司确认以上所填写内容是真实的,并确认以上承诺条款。 单位盖章: 法人代表(签字): 年 月 日
DJI 带 HD 视频输出的云台,通常是 GCU 的 G7 端口。 GIMBAL PORT 提供下列三个功能: a) 电源功能: (V+ V)用于供电 (12~24V)。 连接非 DJI 高清云台时,可引出电源线连接至电池。 CANBus 功能: (L H)用于获取飞控系统 OSD 信息。 连接非 DJI 高清云台时,可引出 CANBus 线连接 DJI 飞控系统的 CANBus 端口( A2
,组织专题会议。 3 会议纪要应包 括: (1)会议时间、地点、参加单位、人员和职务、会议主持人。 ( 2)会议主要内容: 1) 检查上次例会议定事项的落实情况,分析未完事项原因。 2) 检查分析工程项目进度计划完成情况,提出下一阶段进度目标及其落实措施。 3) 检查分析工程项目质量状况,针对存在的质量问题提出改进措施。 4) 检查工程量核定及工程款支付情况。 5) 解决需要协调的有关事项。
)。 gets(st[i].age)。 printf(\n 请输入学生专业: )。 gets(st[i].major)。 fwrite(amp。 st[i],sizeof(struct st_message),1,fp)。 printf(输入成功。 \n 是否继续录入 (Y/N)?)。 choice=getchar()。 if(choice==39。 y39。 ||choice==39。 Y39
)。 /*输出格式控制,下同 */ printf(* [4] 查询当前费用 *\n)。 /*输出提示语句,下同 */ printf( )。 /*输出格式控制,下同 */ printf(* [5] 查询历史记录 *\n)。 /*输出提示语句,下同 */ printf( )。 /*输出格式控制,下同 */ printf(* [6] 关闭程序 *\n)。 /*输出提示语句,下同 */ printf(