I had to do this program for a test, when i was using pound include define i was getting this error, so instead i used constants.
But i want to know why i am getting the error, i still could not figure it out, could someone tell me 1)why i am getting the error 2)how to fix it while still using #include define?
"Integral must have enup or num type"....
/*
Name Hasnain Attarwala
lab3 problem 7
Time Calculator p221
*/
cout << endl << "The No of days are: " << fixed << setprecision(0)
<< days << endl;
cout << "The No of hours are: " << hours << endl;
cout << "The No of mins are: " << mins << endl;
cout << "The No of secs are: " << secs << endl << endl;
}
else if (noOfSeconds >= SEC_HOUR)
{
cout << endl << "The No of hours are: " << fixed << setprecision(0)
<< hours << endl;
cout << "The No of mins are: " << mins << endl;
cout << "The No of secs are: " << secs << endl << endl;
}
else if (noOfSeconds >= SEC_MIN)
{
cout << "The No of mins are: " << mins << endl;
cout << "The No of secs are: " << secs << endl << endl;
}
else
cout << "The No of secs are: " << secs << endl << endl;