From 9c6f8947e63738387842f02a6deaa95b84e9a7f5 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Mon, 25 Apr 2022 17:32:55 +0300 Subject: Autocommit at 25.04.2022 @ 17:32 --- src/Date/Date.cpp | 7 +++++++ src/Date/Date.h | 13 +++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 src/Date/Date.cpp create mode 100644 src/Date/Date.h (limited to 'src') 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 -- cgit v1.3.1-26-gb76a