what wrong with the calculations
for ( int i=0; i<Length; i++)
{
float Pay_check;
Pay_check = workers[i].Hours[i] * workers[i].H_rate ;
cout<<"the Paye is "<<Pay_check<<endl;
}
I don't know what are those variables are until you don't post the full source, but do you actually need to index Hours?
Perhaps post the error(s) to?
Topic archived. No new replies allowed.