qq_44135381
qq_44135381
2019-03-17 21:44

C++这个错误怎么解决 fatal error C1001: INTERNAL COMPILER ERROR ,

  • c++
  • c语言

#include
#include
#include
using namespace std;
#define N 5
struct Employee
{
int num; //员工工号
string name; //姓名
int bas_salary; //基本工资
int job_salary; //岗位工资
int med_house_fund; //医疗住房公积金
int tax; //税
};

int main()
{ int real_salary,i;
void cin_employee_(Employee employee[N]);
int figure_real_salary(struct employee.bas_salary, struct employee.job_salary, struct employee.med_house_fund, struct employee.tax);
Employee employee[N];
cin_employee_(employee);
for(i=0;i {
real_salary=figure_real_salary(employee[i].bas_salary, employee[i].job_salary, employee[i].med_house_fund, employee[i].tax);
cout }
return 0;
}
void cin_employee_(Employee employee[N]) //输入全车间职工的工号、姓名、基本工资、岗位工资、医疗住房基金与税金。
{
int i;
cout for(i=0;i {
cin>>employee[i].num>>employee[i].name>>employee[i].bas_salary>>employee[i].job_salary>>employee[i].med_house_fund>>employee[i].tax;

}

}
int figure_real_salary(struct employee.bas_salary,struct employee.job_salary,struct employee.med_house_fund,struct employee.tax)
//② 计算每一个职工实发工资,计算公式:实发工资=基本工资+岗位工资-医疗住房基金-税金。
{
int real_salary;
real_salary=employee.bas_salary+employee.job_salary-employee.med_house_fund-employee.tax;
return real_salary;
}

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

2条回答

为你推荐