I am building a program for employee data, and for some reason my code will not run, I have searched this forum and others, and I can't figure out the problem with my code.
#include <cstdlib>
#include <iomanip>
#include <iostream>
using namespace std;
class Employee{
    public:
        int idNumber;
        float SalaryRate;
        char * name;
        int BaseSalary;
        char * hisname;
        float salary;
        float bonus;
        float finalSalary;
        Employee(int idNum) //default constructor function
        {
            SalaryRate=0;
            BaseSalary=0;
            idNumber=idNum;
            BaseSalary=0;
            salary=0;
            bonus=0;        
        }
        //constructor function with parameters
        Employee(char * name, int SalaryRate, int idNumber)
        {
            SalaryRate=0;
            idNumber=0;
            strcpy(name, hisname) ;
        }
        float setBonus()
        {
            cout<<"What is the bonus for this employee?\n";
            cin>>bonus;
        }
        void increaseSalary (float increase)
        {
            cout<<"By what percentage would you like to increase ";
            cout<<"p";
            cout<<"'s salary? \n";
            cin>>increase;
            finalSalary = salary * (increase/100)+bonus;
        }
        void print ()
        {
            cout<<"the salary of ";
            cout<<* name;
            cout<< " is "; 
            cout<<finalSalary; 
        }
};
int main() {
    Employee * employees[100];
    for(int i = 0; i < 100; i++)
    {
        cout<<"What is the name you would like to input? ";
        cin>>employees[i]->name;
        int idNumber=i;
        cout<<"What is "; employees[i]->name; "'s hourly rate? ";
        cin>>employees[i]->SalaryRate;       
    }
    //Employee a();
    //a.increaseSalary();
    return 0;
}
 
     
     
     
     
     
     
    