qq_44135381 2019-03-17 21:44 采纳率: 100%
浏览 2059

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

#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条回答 默认 最新

  • liyating__ 2019-03-17 21:57
    关注

    这个是VC6.0的一个BUG。
    不要用using namespace std;
    改成
    using std::cout;
    using std::endl;就可以了

    评论

报告相同问题?

悬赏问题

  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!