aboutsummaryrefslogtreecommitdiff
path: root/CST 126/Homework 1/main.cpp
diff options
context:
space:
mode:
authorarthurtspears <[email protected]>2024-04-20 11:16:36 -0700
committerGitHub <[email protected]>2024-04-20 11:16:36 -0700
commit659a1f12d935130bf8da4fe14165e4f421ac7c18 (patch)
treecebf8ee2c18c8e0aa4cf5fc4630a8005164b068d /CST 126/Homework 1/main.cpp
parentAdded helpers.h file. (diff)
downloadhomework-1-arthurtspears-develop.tar.xz
homework-1-arthurtspears-develop.zip
Adding basic unit tests to Solution (#2)HEADdevelop
* all work up until inclass practice * Added Unit Tests Project * Added second unit tests project as example. * Bring up to date for merge
Diffstat (limited to 'CST 126/Homework 1/main.cpp')
-rw-r--r--CST 126/Homework 1/main.cpp58
1 files changed, 54 insertions, 4 deletions
diff --git a/CST 126/Homework 1/main.cpp b/CST 126/Homework 1/main.cpp
index dd21a1e..e223d37 100644
--- a/CST 126/Homework 1/main.cpp
+++ b/CST 126/Homework 1/main.cpp
@@ -1,13 +1,63 @@
// Name: Arthur Spears
// Class: CST 126
// Date: 3/31/24
-// Assignment: Homework
+// Assignment: Homework 1
#include <iostream>
+#include "helpers.hpp"
+#include "menu.hpp"
+#include <bitset>
-int main() {
+using std::cout;
+using std::endl;
+
+struct DailyTemperature
+{
+ int highTemp{};
+ int lowTemp{};
+};
+
+enum DayOfTheWeek
+{
+ Sunday = 0,
+ Monday,
+ Tuesday,
+ Wednesday,
+ Thursday,
+ Friday,
+ Saturday = 6
+};
- std::cout << "Hello world";
+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;
+};
+
+union FloatIntUnion
+{
+ float intFloat;
+ uint32_t uInt;
+};
+
+int main() {
+
return 0;
-} \ No newline at end of file
+}