Exercise 10.06.01

The text for this exercise reads:

(*1) Find the error in Date::add_year() in 10.2.2. Then find two addicional errors in the version in 10.2.7.

I can see the error in the first version: it doesn't check for a leapyear. In the secound I see another error: It works wrong if it goes through Year 0. But where's the secound error??

Back to the Exercise Page
Back to my Home Page