NextDate
|
A class to calculate the next date given a current date. More...
#include <NextDate.h>
Public Member Functions | |
NextDate () | |
Default constructor for NextDate. More... | |
std::string | getNextDate (int month, int day, int year) |
Calculates the next date given the current date. More... | |
A class to calculate the next date given a current date.
This class provides functionality to determine the date immediately following a given input date, taking into account month and year boundaries, as well as leap years.
NextDate::NextDate | ( | ) |
std::string NextDate::getNextDate | ( | int | month, |
int | day, | ||
int | year | ||
) |
Calculates the next date given the current date.
month | The current month (1-12) |
day | The current day (1-31) |
year | The current year (1812-2012) |
Calculates the next date based on the given month, day, and year.
month | The current month (1-12). |
day | The current day (1-31). |
year | The current year (1812-2012). |