diff options
| -rw-r--r-- | Ch 5 Debugging Project/Ch 5 Debugging Project.cpp | 13 | ||||
| -rw-r--r-- | 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 @@ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
- <PlatformToolset>v142</PlatformToolset>
+ <PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
- <PlatformToolset>v142</PlatformToolset>
+ <PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
- <PlatformToolset>v142</PlatformToolset>
+ <PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
- <PlatformToolset>v142</PlatformToolset>
+ <PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
|