diff options
| author | Joseph Williams <[email protected]> | 2022-09-29 16:33:11 -0700 |
|---|---|---|
| committer | Joseph Williams <[email protected]> | 2022-09-29 16:33:11 -0700 |
| commit | abcdbee97218e6309213a623653a54ed10945072 (patch) | |
| tree | 8ea758076e4b76606d878814c857ae608f1beddc /CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp | |
| parent | Setting up GitHub Classroom Feedback (diff) | |
| download | cst116-ch6-debugging-allthenamesaretaken3141-abcdbee97218e6309213a623653a54ed10945072.tar.xz cst116-ch6-debugging-allthenamesaretaken3141-abcdbee97218e6309213a623653a54ed10945072.zip | |
Diffstat (limited to 'CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp')
| -rw-r--r-- | CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp b/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp index 497e2f8..560539a 100644 --- a/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp +++ b/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp @@ -1,3 +1,6 @@ +// Name: Joe Williams
+// Course: CST116
+
/********************************************************************
* File: CST116-Ch6-Debugging.cpp
*
@@ -51,7 +54,7 @@ int main() // Breakpoint 1
// Put a breakpoint on the following line
- celcius = 5 / 9 * fahrenheit - 32;
+ celcius = static_cast<float>(5) / 9 * (fahrenheit - 32);
cout << fahrenheit << " degrees F = "
<< celcius << " degrees C" << endl;
|