diff options
| author | Arthur Spears <[email protected]> | 2024-04-20 11:20:18 -0700 |
|---|---|---|
| committer | Arthur Spears <[email protected]> | 2024-04-20 11:20:18 -0700 |
| commit | 87ead23fc848ed17e307f8a1cc1504ddefb6e533 (patch) | |
| tree | 4963b69eb1330e138f1f9052002a4a9e1b694bf1 /CST 126/Homework 1 | |
| parent | Merge branch 'develop' of https://github.com/OIT-WI-2024/homework-1-arthurtsp... (diff) | |
| parent | Adding basic unit tests to Solution (#2) (diff) | |
| download | homework-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.cpp | 9 | ||||
| -rw-r--r-- | CST 126/Homework 1/menu.hpp | 2 |
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; |