- 4
- 0
- 约4.41千字
- 约 7页
- 2017-03-05 发布于重庆
- 举报
职工工资管理程序
#include stdafx.h
#include iostream
#include string
#include list
#include cassert
using namespace std;
/*
编号、姓名、部门、应付工资、保险、税金、实付工资。
其中实付工资由公式计算得到:实付工资 应付工资 - 保险- 税金
*/
struct employee
string m_num;//编号
string m_name;//姓名
string m_dep;//部门
double m_salary;//应付工资
double m_insurance;//保险
double m_tax;//税金
;
/*
1)录入:输入职工数据,其中“实付工资”通过计算得到;
2)删除:删除指定的职工信息(输入姓名,若找到则删除该信息)
3 修改:允许对已经录入的数据重新进行编辑、修改;
4 显示:显示全体职工数据;
5)查询:
a. 输入职工姓名,显示该职工的全部数据;
b. 输入某部门值,显示该部门职工的数据、工资总额、平均工资。
6 退出程序。
*/
list emps;
int _tmain int argc, _TCHAR* argv[] void print const employee e ;
void input ;
原创力文档

文档评论(0)