diff options
Diffstat (limited to 'week09/Exercise2/Date.h')
| -rw-r--r-- | week09/Exercise2/Date.h | 18 |
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); +}; |
