NextDate
/builds/seng4110-egarciaochoa/lab4/NextDate.h
Go to the documentation of this file.
1 #ifndef NEXTDATE_H
2 #define NEXTDATE_H
3 
4 #include <string>
5 
21 class NextDate {
22 public:
26  NextDate();
27 
35  std::string getNextDate(int month, int day, int year);
36 
37 private:
43  bool isLeapYear(int year);
44 
52  bool isValidDate(int month, int day, int year);
53 
60  int daysInMonth(int month, int year);
61 };
62 
63 #endif // NEXTDATE_H
A class to calculate the next date given a current date.
Definition: NextDate.h:21
std::string getNextDate(int month, int day, int year)
Calculates the next date given the current date.
Definition: NextDate.cpp:24
NextDate()
Default constructor for NextDate.
Definition: NextDate.cpp:14