Start with some
Learn C++ tutorial to learn the language and think over your task. Best is to make some sketch about all functions and members.
You may end up with an Employee class which has a boolean for hourly pay, so you can use an if-else clause like:
int Employee::getSalary() {
if( isHourlyPaid ) {
return hours * hourlyWage;
} else {
return weeklyFixum;
}
}
Or you create a base class Employee and child classes for every type.