This time class is driving me crazy...How can I get this program to calculate how long I have to wait in hours, mins and seconds for lunch and dinner using 'diff' ??????
#include "time.h"
int main()
{
Time begin;
Time end;
Time check_in;
int h, m, s;
begin.set (12,0, 0);
end.set (18, 0, 0);
cout << " enter hour, min, sec\n ";
cin >>h>>m>>s;
check_in.set (h, m, s);
cout << " the time you checked in ";
check_in.print ();
if (check_in.Equal(begin))
cout << "You are right on time. Lets go to lunch !! ";
if( check_in.LessThan(begin))
cout << " Good Morning you are early. You have to wait for lunch !! ";
if( check_in.GreaterThan(begin))
cout << "Good Afternoon you are late. You have to wait for dinner !! ";
return 0;
}