<<< Step in the right direction | Index | Solution: use date as a variable >>> |
However,
Program contains too many small steps.
Program requires up to 4 variables to handle each date: month, day, year, and serial_date.
No protection of any kind exists to prohibit illegal date modifications:
int month = 2; int day = 31; // the day is outside of allowable range for February int year = 2010;
<<< Step in the right direction | Index | Solution: use date as a variable >>> |