aboutsummaryrefslogtreecommitdiff
path: root/CST 126/Homework 1/CST126_Structures.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'CST 126/Homework 1/CST126_Structures.hpp')
-rw-r--r--CST 126/Homework 1/CST126_Structures.hpp67
1 files changed, 67 insertions, 0 deletions
diff --git a/CST 126/Homework 1/CST126_Structures.hpp b/CST 126/Homework 1/CST126_Structures.hpp
new file mode 100644
index 0000000..5a57b88
--- /dev/null
+++ b/CST 126/Homework 1/CST126_Structures.hpp
@@ -0,0 +1,67 @@
+#ifndef CST126_STRUCTURES_HPP
+#define CST126_STRUCTURES_HPP
+
+#include <cstdint>
+#include <ios>
+
+typedef unsigned long long uLLong;
+
+typedef unsigned char BYTE;
+
+constexpr size_t MAX_STREAM_SIZE = std::numeric_limits<std::streamsize>::max();
+
+constexpr uLLong MAX_CHAR = 101;
+
+union FloatIntUnion
+{
+ float intFloat;
+ uint32_t uInt;
+};
+
+enum TemperatureType
+{
+ Fahrenheit,
+ Celsius
+};
+
+struct DailyTemperature
+{
+ float highTemp{};
+ float lowTemp{};
+ TemperatureType tempType{};
+};
+
+enum DayOfTheWeek
+{
+ Sunday = 0,
+ Monday,
+ Tuesday,
+ Wednesday,
+ Thursday,
+ Friday,
+ Saturday = 6
+};
+
+enum Month
+{
+ January = 1,
+ February,
+ March,
+ April,
+ May,
+ June,
+ July,
+ August,
+ September,
+ October,
+ November,
+ December
+};
+
+struct Date
+{
+ Month month;
+ uint8_t day;
+ uint16_t year;
+};
+#endif