The goodIds and badIds arrays don't seem to be loading right. The good one shows all the values loaded in including 4 0s at the bottom where the bad ids were.. the bad one does the same only all the good ones come out as 0s and the bad ones print out. As for the totalPay array that one only displays values for the first 4 entries in the array. After that it's all 0.00. Any clues on how to fix this?
void ClassTwo::pay()
{
int empId, location;
employeeArray.loadArrays();
employeeArray.bubbleSort();
for(int i = 0; i < empCount; ++i)
{
empId = empPayNumbers[i];
location = employeeArray.binSearch(empId);
if(location >= 0)
{
goodIds[i] = empId;
totalPay[i] = getEmpHours(location) * employeeArray.getEmpPay(location);
}
else
{
cout << "Employee " << empId << " not found!" << endl;
badIds[i] = empId;
}
}
}