Hello everyone. I need a help

I need to write a program which shows calendar for the whole year.

By using only <iostream> and <conio.h>.

User iserts only the number of the year.

Program shows days, weeks (including from which day of the week the year starts), months.

The year divideble to 4 will includes 366 days (29th of February)

Every century also includes 366 days.

Thanks in advance.
Every century also includes 366 days.
Centuries have only 365 days and lack 29th of February.
Millenia, on the other hand, does have 366 years and are a leap years.

2000 is a leap year, 2004 is a leap year, 2100 is not.
3000 is not a leap year
(not divisible by 400)
Last edited on
@ne555, of course you are right.

To OP:
You need to find algorithm to determine what day of week arbitrary date is. I suggest simply googling it.
Then you will need to think how your calendar will be shown on screen, taking in account screen width.
I think, you wont be able to fit more than 3 month in single row.

After you think about it, you can start designing your program.
Guys, I will be thanksful if you share your experience (I'm beginner) by making some examples of codes.
Topic archived. No new replies allowed.