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 PostYour solution is posted as the announcement of DaniWeb : We only give homework help to those who show effort
This is what it reads:This forum is meant for discussing programming languages in addition to exchanging code and algorithms. However, it has become a problem where too many …
All 5 Replies
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
cassie_sanford 1 Junior Poster in Training
tux4life 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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.