运行一个人员信息管理程序时出错了,请各位高手指教!!!
一个关于《人员信息管理程序》://employee.h
class employee
{
protected:
int individualEmpNo;
int grade;
float accumPay;
static int employeeNo;
public:
employee();
~employee();
void promote(int);
void SetaccumPay (float pa);
int GetindividualEmpNo();
int Getgrade();
float GetaccumPay();
};
//employee.cpp
#include <iostream>
#include"employee.h"
using namespace std;
int employee::employeeNo=1000;
employee::employe()
{
individualEmpNo=employeeNo ++;
grade = 1;
accumPay = 0.0;
}
employee::~employee() {}
void employee::promote(int increment)
{
grade +=increment;
}
void employee::SetaccumPay (float pa)
{
accumPay=pa;
}
int employee::GetindividualEmpNo()
{
return individualEmpNo;
}
int employee::Getgrade()
{
return grade;
}
float employee::GetaccumPay()
{
return accumPay;
}
//5_11.cpp
#include <iostream>
#include"employee.h"
using namespace std;
int main()
{
employee ml;
employee tl;
employee sml;
employee sl;
cout<<"请输下一个雇员的月薪:";
float pa;
cin>> pa;
ml.promote(3);
ml.SetaccumPay (pa);
cout<<"请输下一个雇员的月薪:";
cin>> pa;
tl.promote(2);
tl.SetaccumPay (pa);
cout<<"请输下一个雇员的月薪:";
cin>>pa;
sml.promote(2);
sml.SetaccumPay (pa);
cout<<"请输下一个雇员的月薪:";
cin>>pa;
sl.SetaccumPay (pa);
//显示ml信息
cout<<"编号"<<ml.GetindividualEmpNo()
<<"级别为"<<ml.:Getgrade()<<"级,本月工资"<<ml.:Getgrade()<<endl;
//显示tl信息
cout<<"编号"<<tl.GetindividualEmpNo()
<<"级别为"<<tl.:Getgrade()<<"级,本月工资"<<tl.:Getgrade()<<endl;
//显示sml信息
cout<<"编号"<<sml.GetindividualEmpNo()
<<"级别为"<<sml.:Getgrade()<<"级,本月工资"<<sml.:Getgrade()<<endl;
//显示sl信息
cout<<"编号"<<sl.GetindividualEmpNo()
<<"级别为"<<sl.:Getgrade()<<"级,本月工资"<<sl.:Getgrade()<<endl;
}
运行时出错,说的是:
f:\5\5_11\5_11.cpp(3) : fatal error C1083: Cannot open include file: 'employee.h': No such file or directory
执行 cl.exe 时出错.
请各位高手解释一下!!!这是个什么错误???