diff options
Autocommit at 25.04.2022 @ 17:32
2 files changed, 20 insertions, 0 deletions
| -rw-r--r-- | src/Date/Date.cpp | 7 | ||||
| -rw-r--r-- | src/Date/Date.h | 13 |
diff --git a/src/Date/Date.cpp b/src/Date/Date.cpp new file mode 100644 index 0000000..4ef0f86 --- /dev/null +++ b/src/Date/Date.cpp @@ -0,0 +1,7 @@ +#include "Date.h" + +Date::Date(unsigned day, unsigned month, unsigned year) { + this->day = day; + this->month = month; + this->year = year; +} diff --git a/src/Date/Date.h b/src/Date/Date.h new file mode 100644 index 0000000..22f8d45 --- /dev/null +++ b/src/Date/Date.h @@ -0,0 +1,13 @@ +#ifndef HEADER_DATE +#define HEADER_DATE + +class Date { + unsigned day; + unsigned month; + unsigned year; + +public: + Date(unsigned day, unsigned month, unsigned year); +}; + +#endif |
