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. In the first function, don you calculate the total number of days just by cin and return to that function? 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?

cassie_sanford
1
Junior Poster in Training

## Recommended Answers

Jump to PostI 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 …

Jump to PostWhy are there HTML-tags in your post, BTW, ever heard of paragraphs :P ?

It's difficult to read this ...

## All 5 Replies

WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague

cassie_sanford
1
Junior Poster in Training

mvmalderen
2,072
Postaholic

cassie_sanford
1
Junior Poster in Training

siddhant3s
1,429
Practically a Posting Shark

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.