But apparently you shouldn't use using namespace std; in header files, why is that? |
since dates are never negative. |
¿They aren't? |
The system of three 365-day years followed by one 366-day Leap Year began in 47 B.C. The extra day was added to the last month of the year, which at that time was February. ...Although Caesar was on the right track, the passing of several centuries revealed that his system wasn’t going to work.... Fifteen centuries after Caesar and Susigenes first got the ball rolling, Pope Gregory XIII and astronomer Christopher Clavius revised the plan and developed the Gregorian calendar, which we still use today. They kicked it off by eliminating 11 days. In the year 1582, October 4 was immediately followed by October 15. Additionally, December became the last month of the year. Finally, in order to eliminate the extra 3 Leap Years occurring, century years (ending in 00) must be divisible by 400 to be designated a Leap Year. So 1700, 1800 and 1900 were not Leap Years, but the years 1600 and 2000 were. |