Hi,
i have problem to compile a sourcecode...
error with "Cout"
error with in
error with (Each
error with "endl"
What have I did wrong in this code...
Code:
#include <iostream>
struct TIME_REC
{
double dHours;
double dRate;
};
int main()
{
TIME_REC payrollRecord;
payrollRecord.dHours = 40.0;
payrollRecord.dRate = 3.75;
cout << "This week's payroll information:" << endl;
cout << "Hours worked : " << payrollRecord.dHours << endl;
cout << "Rate :$" << payrollRecord.dRate << endl;
double dSalary = payrollRecord.dRate * payrollRecord.dHours;
cout << "Salary :$" << dSalary << endl;
return 0;
}