Website Summary Files Commits Branches @commit @diff @stats
path: root / Week02 / Exercise02 / temperature.h
diff options
context:
space:
mode:
1 files changed, 16 insertions, 0 deletions
-rw-r--r--Week02/Exercise02/temperature.h16
diff --git a/Week02/Exercise02/temperature.h b/Week02/Exercise02/temperature.h
new file mode 100644
index 0000000..799313f
--- /dev/null
+++ b/Week02/Exercise02/temperature.h
@@ -0,0 +1,16 @@
+#ifndef _TEMPERATURE
+#define _TEMPERATURE
+
+struct Temperature {
+ double C;
+ double F;
+ double K;
+
+ void fromCelsius(double C);
+ void fromFahrenheit(double F);
+ void fromKelvin(double K);
+
+ Temperature Sum(const Temperature& other);
+};
+
+#endif