aboutsummaryrefslogtreecommitdiff
path: root/week07/Exercise3.h
diff options
context:
space:
mode:
Diffstat (limited to 'week07/Exercise3.h')
-rw-r--r--week07/Exercise3.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/week07/Exercise3.h b/week07/Exercise3.h
new file mode 100644
index 0000000..2cf27bf
--- /dev/null
+++ b/week07/Exercise3.h
@@ -0,0 +1,15 @@
+class Thermometer {
+ unsigned maxMeasurable;
+ unsigned minMeasurable;
+ unsigned currentTemperature;
+
+public:
+ Thermometer(unsigned maxMeasurable, unsigned minMeasurable, unsigned currentTemperature);
+ void Print();
+
+ void SaveText(const char* fileName);
+ void LoadText(const char* fileName);
+
+ void SaveBinary(const char* fileName);
+ void LoadBinary(const char* fileName);
+};