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 ;)

My forecast is that you didn't read this on your headlong rush to post as soon as possible.

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.

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!

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.