From 141dcf586dca053c4e99d38df59d9954da56e1d3 Mon Sep 17 00:00:00 2001 From: Trevor Bouchillon Date: Sun, 2 Oct 2022 09:29:11 -0700 Subject: Debug 1 done --- Ch 5 Debugging Project/Ch 5 Debugging Project.cpp | 13 ++++++++++--- Ch 5 Debugging Project/Ch 5 Debugging Project.vcxproj | 8 ++++---- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp index 6545e9b..f1fc246 100644 --- a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp +++ b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp @@ -70,10 +70,17 @@ int main() cout << "You have $"; cout << money << endl; - + /* ******************************************************************************************************************************************* + After the first cout statement we are at the line of code were the variable money is displayed in the console window. + Money appears to be a float type integer with a value of 123.449997 It shows up in the watch section of the code. + ****************************************************************************************************************************************** + */ // Breakpoint 1 // Put a breakpoint on the following line - cout << "Enter percent raise: "; + cout << "Enter percent raise: "; + /* ******************************************************************************************************************************************* + The value shown in the watch was printed rounded to 2 decimal points. + *******************************************************************************************************************************************/ cin >> raise; money = money * raise; @@ -82,4 +89,4 @@ int main() cout << money << endl; return 0; -} \ No newline at end of file + } \ No newline at end of file diff --git a/Ch 5 Debugging Project/Ch 5 Debugging Project.vcxproj b/Ch 5 Debugging Project/Ch 5 Debugging Project.vcxproj index b6da2fe..97611d8 100644 --- a/Ch 5 Debugging Project/Ch 5 Debugging Project.vcxproj +++ b/Ch 5 Debugging Project/Ch 5 Debugging Project.vcxproj @@ -29,26 +29,26 @@ Application true - v142 + v143 Unicode Application false - v142 + v143 true Unicode Application true - v142 + v143 Unicode Application false - v142 + v143 true Unicode -- cgit v1.2.3