aboutsummaryrefslogtreecommitdiff
path: root/week09/Exercise2/Date.h
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2024-04-22 17:30:29 +0300
committerSyndamia <kamen@syndamia.com>2024-04-22 17:30:29 +0300
commitf4642325f58172e85b9e41e35f69e8bea46f78c6 (patch)
tree038377e89be336cbb91469dd526cebbfcfe02df5 /week09/Exercise2/Date.h
parentf3406754705e508f57768d3d0d8e457ff5b7620c (diff)
downloadoop-2023-solutions-f4642325f58172e85b9e41e35f69e8bea46f78c6.tar
oop-2023-solutions-f4642325f58172e85b9e41e35f69e8bea46f78c6.tar.gz
oop-2023-solutions-f4642325f58172e85b9e41e35f69e8bea46f78c6.zip
[w9] Added solutions to ex 1-2
Diffstat (limited to 'week09/Exercise2/Date.h')
-rw-r--r--week09/Exercise2/Date.h18
1 files changed, 18 insertions, 0 deletions
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);
+};