0

i have an assignment to make a program that forecast the date given by the number of days by the user including leap years.

example:

Input date: November 20, 2008
Input number of days to forecast: 100
Forecast date: March 01, 2009

pls. help thank you ;)

Edited by tinek: n/a

4
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by Dave Sinkula
1

See functions in time.h -- particularly mktime() and structure time_t. Also it's not called "forcasting time" -- that is not forcasting anything. Its just simply advancing to some future date.

0

i have an assignment to make a program that forecast the date given by the number of days by the user including leap years.

example:

Input date: November 20, 2008
Input number of days to forecast: 100
Forecast date: March 01, 2009

pls. help thank you ;)

I wrote some code to do this and put it in the snippets. If you want a look at it, good luck searching!

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.