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 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'Ch 5 Debugging Project/Ch 5 Debugging Project.cpp') 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 -- cgit v1.2.3