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;就可以了

    评论

报告相同问题?

悬赏问题

  • ¥50 永磁型步进电机PID算法
  • ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
  • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
  • ¥15 如何处理复杂数据表格的除法运算
  • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
  • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
  • ¥200 uniapp长期运行卡死问题解决
  • ¥15 latex怎么处理论文引理引用参考文献
  • ¥15 请教:如何用postman调用本地虚拟机区块链接上的合约?
  • ¥15 为什么使用javacv转封装rtsp为rtmp时出现如下问题:[h264 @ 000000004faf7500]no frame?