Help with this class please

Im having an issue with the class employee constructor


class Employee
{
public:
Employee()
{
char person[]="None";
strcpy (name, person);
idNum=1000;
salary=0;
};
Employee(const char x*, int id, double sal)
{
strcpy (name, x*);
idNum=id;
salary=sal;
};


void printEmp()
{
cout<<"Employee: ";
for (int x=0;x<26;x++)
{
cout<<name[x];
}
cout<<"ID: "<<idNum;
cout<<"Salary: "<<salary;
};
void increaseSalary( double more)
{
if (more>0)
{
salary=salary+more;
}
else
{
cout<<"Error: the salary cannot be increased";
}
};

void setIDnum( int newIDnum)
{
if (newIDnum<1000||newIDnum>9999999)
{
cout<<"Error: the new identification number is invalid. It will be ste to 1000";
idNum=1000;
}
else
{
idNum=newIDnum;
}
};
void setSalary( double newSalary)
{
if(newSalary<=0)
{
cout<<"Error: the passed in salary is invalid. The salary will be set to 0.00";
salary=0.00;
}
else
{
salary=newSalary;
}
};

int getIDnum()
{
return idNum;
};
double getSalary()
{
return salary;
};

private:
char name[25];
int idNum;
double salary;
};
//Employee Class Definition


int main()
{

//Create 5 Employee objects.


//First Employee

//Create the object
Employee e1= Employee( "Matthew Lyon", 1704663, 678367732.40);
Topic archived. No new replies allowed.