I have 2 functions: one has to calculate the total number of days spent on a trip and the other has to calcualte the time of departure on the first day of the trip and the arrival back home on the last day of the trip.
OK, so far
In the first function, don you calculate the total number of days just by cin and return to that function?
Don know. We have no information on the design specs of the program. You certainly
could do it using cin.
Im totally lost on how to calculate the time of departure on the first day....i'm thinking that there is some type of pre-processor directive for the date and time but I cant think of it...can anyone offer any suggestions?
We have no idea how your 'time' is stored. If it's in seconds, you do one thing. If it's in 'time format' you do something else.
Reputation Points: 3275
Solved Threads: 890
Posting Sage
Offline 7,717 posts
since May 2006