I'm looking to figure out this problem:
Define a structure called DATE with three fields, each of which is an integer: one for the month, one for the day and one for the year, and write a function called increment that accepts a date structure, increments the date by one day and returns the new date. If the
date is the last day of the month, then the month field also must be changed. If the month is 12 (December) and the day is 31, then the value of the year field must also be changed. (Remember a year is a leap year if it is evenly divisible by 4 but not by 100 or it is evenly
divisible by 400.) Finally, build a complete program that reads a particular date and prints the next date.