From f4642325f58172e85b9e41e35f69e8bea46f78c6 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Mon, 22 Apr 2024 17:30:29 +0300 Subject: [w9] Added solutions to ex 1-2 --- week09/Exercise2/Date.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 week09/Exercise2/Date.h (limited to 'week09/Exercise2/Date.h') diff --git a/week09/Exercise2/Date.h b/week09/Exercise2/Date.h new file mode 100644 index 0000000..d280c71 --- /dev/null +++ b/week09/Exercise2/Date.h @@ -0,0 +1,18 @@ +#pragma once + +class Date { + unsigned day; + unsigned month; + unsigned year; + +public: + Date(); + Date(unsigned day, unsigned month, unsigned year); + + void print(); + + void StoreText(const char* outFileName); + void StoreBinary(const char* outFileName); + void LoadText(const char* inFileName); + void LoadBinary(const char* inFileName); +}; -- cgit v1.2.3