aboutsummaryrefslogtreecommitdiff
path: root/CST 126/Homework 1
diff options
context:
space:
mode:
authorArthur Spears <[email protected]>2024-04-20 11:20:18 -0700
committerArthur Spears <[email protected]>2024-04-20 11:20:18 -0700
commit87ead23fc848ed17e307f8a1cc1504ddefb6e533 (patch)
tree4963b69eb1330e138f1f9052002a4a9e1b694bf1 /CST 126/Homework 1
parentMerge branch 'develop' of https://github.com/OIT-WI-2024/homework-1-arthurtsp... (diff)
parentAdding basic unit tests to Solution (#2) (diff)
downloadhomework-1-arthurtspears-87ead23fc848ed17e307f8a1cc1504ddefb6e533.tar.xz
homework-1-arthurtspears-87ead23fc848ed17e307f8a1cc1504ddefb6e533.zip
mergine develop after PR
Diffstat (limited to 'CST 126/Homework 1')
-rw-r--r--CST 126/Homework 1/main.cpp9
-rw-r--r--CST 126/Homework 1/menu.hpp2
2 files changed, 2 insertions, 9 deletions
diff --git a/CST 126/Homework 1/main.cpp b/CST 126/Homework 1/main.cpp
index b4c91fc..e223d37 100644
--- a/CST 126/Homework 1/main.cpp
+++ b/CST 126/Homework 1/main.cpp
@@ -58,13 +58,6 @@ union FloatIntUnion
};
int main() {
- FloatIntUnion floatIntUnion {};
- floatIntUnion.intFloat = 1.2345f;
-
- std::cout << "Float: " << floatIntUnion.intFloat << std::endl;
- std::cout << "Binary representation: " << std::bitset<32>(static_cast<uint32_t>(floatIntUnion.intFloat)) << std::endl;
- std::cout << "As Int: " << floatIntUnion.uInt << std::endl;
- std::cout << "Binary representation: " << std::bitset<32>(floatIntUnion.uInt) << std::endl;
-
+
return 0;
}
diff --git a/CST 126/Homework 1/menu.hpp b/CST 126/Homework 1/menu.hpp
index 8b99931..849f21a 100644
--- a/CST 126/Homework 1/menu.hpp
+++ b/CST 126/Homework 1/menu.hpp
@@ -22,7 +22,7 @@ inline void DisplayMenu() {
inline void Worker() {
int input = 0;
-
+
DisplayMenu();
cin >> input;