这个错误怎么改哦?急急急!!!!谢谢谢谢
请教下下面的程序错误怎么改哦????????????谢谢谢谢了哦class employee
{
public:
employee();
void promote(int);
void setyuexin(float);
int getbianhao();
int getrgrade();
int getyuexin();
protected:
int gerenbianhao;
int grade;
float yuexin;
static int employeeno;
};
//类实现文件
#include<iostream>
#include"employee.h"
using namespace std;
int employee::employeeno=1000;
employee::employee() //构造函数的实现
{
gerenbianhao=gerenbiaohao++;
grade=1;
yuexin=0.0;
}
void employee::promote(int inscrement)
{
grade=grade+inscrement;
}
void employee::setyuexin(float pa)
{
yuexin=pa;
}
int employee::getbianhao()
{
return(employeeno);
}
void employee::getrgrade()
{
return(grade);
}
int employee::getyuexin()
{
return(yuexin);
}
//主函数
#include<iostream>
#include"employee.h"
using namespace std;
int main()
{
employee m1;
employee t1;
employee sm1;
employee s1;
float pa;
cout<<"输入月薪:";
cin>>pa;
m1.promote(3);
m1.setyuexin(pa);
cout<<"输入月薪:";
cin>>pa;
t1.promote(2);
t1.setyuexin(pa);
cout<<"输入月薪:";
cin>>pa;
sm1.promote(3);
sm1.setyuexin(pa);
cout<<"输入月薪:";
cin>>pa;
s1.setyuexin(pa);
//显示信息
cout<<"编号:"<<m1.getbianhao()<<"级别:"<<m1.getrgrade()<<"工资:"<<m1.getyuexin()<<endl;
cout<<"编号:"<<t1.getbianhao()<<"级别:"<<t1.getrgrade()<<"工资:"<<t1.getyuexin()<<endl;
cout<<"编号:"<<sm1.getbianhao()<<"级别:"<<sm1.getrgrade()<<"工资:"<<sm1.getyuexin()<<endl;
cout<<"编号:"<<s1.getbianhao()<<"级别:"<<s1.getrgrade()<<"工资:"<<s1.getyuexin()<<endl;
}