I'll try to be a bit more helpful
Code:
#include <iostream>
#include <time.h>
using namespace std;
int main()
{
// you probably want the current time...
time_t ltime;
struct tm *today = localtime( & ltime );
time( & ltime );
//x.tm_hour, tm_isdst, tm_mday, tm_min, tm_mon, tm_sec, tm_wday, tm_yday, tm_year
//specifically: x.tm_hour is hours since midnight
// x.tm_min is how many minutes since start of hour
// x.tm_sec is seconds
int hours, minutes, morehours, days;
cout << "How many hours? ";
cin >> hours;
// you should get the idea for input
days = (hours+(minutes/60))/24;
return 0;
}
Thats part of it. I'll let you figure the rest out