aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortwsta <twsta@TRENTON-PC-V2>2022-10-12 20:28:37 -0700
committertwsta <twsta@TRENTON-PC-V2>2022-10-12 20:28:37 -0700
commitba007e5f691589db0b113300b4bf0467c38f343a (patch)
tree9971ee405ae7b06dcbb85114a8afaeae6cf22c28
parentadded .gitignore (diff)
downloadcst116-ch6-debugging-stark-ba007e5f691589db0b113300b4bf0467c38f343a.tar.xz
cst116-ch6-debugging-stark-ba007e5f691589db0b113300b4bf0467c38f343a.zip
fixed integer division
-rw-r--r--.vs/slnx.sqlitebin319488 -> 319488 bytes
-rw-r--r--CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp2
2 files changed, 1 insertions, 1 deletions
diff --git a/.vs/slnx.sqlite b/.vs/slnx.sqlite
index 6da3937..670fd7e 100644
--- a/.vs/slnx.sqlite
+++ b/.vs/slnx.sqlite
Binary files differ
diff --git a/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp b/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp
index cfede8f..a4cede0 100644
--- a/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp
+++ b/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp
@@ -51,7 +51,7 @@ int main()
// Breakpoint 1
// Put a breakpoint on the following line
- celcius = 5 / 9 * (fahrenheit - 32);
+ celcius = 5.0 / 9.0 * (fahrenheit - 32);
cout << fahrenheit << " degrees F = "
<< celcius << " degrees C" << endl;