diff options
| -rw-r--r-- | Ch 5 Debugging Project/CST116-Debugging.sln (renamed from Ch 5 Debugging Project/Ch 5 Debugging Project.sln) | 62 | ||||
| -rw-r--r-- | Ch 5 Debugging Project/Ch 5 Debugging Project.cpp | 10 |
2 files changed, 39 insertions, 33 deletions
diff --git a/Ch 5 Debugging Project/Ch 5 Debugging Project.sln b/Ch 5 Debugging Project/CST116-Debugging.sln index 71bfae3..b289923 100644 --- a/Ch 5 Debugging Project/Ch 5 Debugging Project.sln +++ b/Ch 5 Debugging Project/CST116-Debugging.sln @@ -1,31 +1,31 @@ -
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio Version 16
-VisualStudioVersion = 16.0.32228.343
-MinimumVisualStudioVersion = 10.0.40219.1
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Ch 5 Debugging Project", "Ch 5 Debugging Project.vcxproj", "{57683855-4FB5-44EC-A27A-69826948F323}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|x64 = Debug|x64
- Debug|x86 = Debug|x86
- Release|x64 = Release|x64
- Release|x86 = Release|x86
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {57683855-4FB5-44EC-A27A-69826948F323}.Debug|x64.ActiveCfg = Debug|x64
- {57683855-4FB5-44EC-A27A-69826948F323}.Debug|x64.Build.0 = Debug|x64
- {57683855-4FB5-44EC-A27A-69826948F323}.Debug|x86.ActiveCfg = Debug|Win32
- {57683855-4FB5-44EC-A27A-69826948F323}.Debug|x86.Build.0 = Debug|Win32
- {57683855-4FB5-44EC-A27A-69826948F323}.Release|x64.ActiveCfg = Release|x64
- {57683855-4FB5-44EC-A27A-69826948F323}.Release|x64.Build.0 = Release|x64
- {57683855-4FB5-44EC-A27A-69826948F323}.Release|x86.ActiveCfg = Release|Win32
- {57683855-4FB5-44EC-A27A-69826948F323}.Release|x86.Build.0 = Release|Win32
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
- GlobalSection(ExtensibilityGlobals) = postSolution
- SolutionGuid = {847C2D32-D5B4-4378-AF10-BC31589B8C0A}
- EndGlobalSection
-EndGlobal
+ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.32228.343 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Ch 5 Debugging Project", "Ch 5 Debugging Project.vcxproj", "{57683855-4FB5-44EC-A27A-69826948F323}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {57683855-4FB5-44EC-A27A-69826948F323}.Debug|x64.ActiveCfg = Debug|x64 + {57683855-4FB5-44EC-A27A-69826948F323}.Debug|x64.Build.0 = Debug|x64 + {57683855-4FB5-44EC-A27A-69826948F323}.Debug|x86.ActiveCfg = Debug|Win32 + {57683855-4FB5-44EC-A27A-69826948F323}.Debug|x86.Build.0 = Debug|Win32 + {57683855-4FB5-44EC-A27A-69826948F323}.Release|x64.ActiveCfg = Release|x64 + {57683855-4FB5-44EC-A27A-69826948F323}.Release|x64.Build.0 = Release|x64 + {57683855-4FB5-44EC-A27A-69826948F323}.Release|x86.ActiveCfg = Release|Win32 + {57683855-4FB5-44EC-A27A-69826948F323}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {847C2D32-D5B4-4378-AF10-BC31589B8C0A} + EndGlobalSection +EndGlobal diff --git a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp index f1a28e7..3c0d813 100644 --- a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp +++ b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp @@ -6,8 +6,10 @@ *
* Debugging Exercise 1
*
-*
-* test test
+* Abdullah Havaldar
+* CST116 C++ Programming
+* Lab 0
+* Debugging
*
* 1) On the lines indicated in the code below, insert a breakpoint.
* 2) With the program not in debugging mode, start debugging by
@@ -19,6 +21,7 @@ * the current line being that cout statement, Step Into again.
* 6) What happened? Where are we now? What is all of this nasty
* looking code?
+* It broke :(
* 7) Remember, stepping into a predefined routine takes you to the
* code for that routine. If the debugger can't find the code it
* will show the assembly code for that routine.
@@ -28,6 +31,7 @@ * line.
* 10) Step over the next cout statement. Now look at the console
* window. What was printed?
+*
* 11) Select Stop Debugging either from the Debug menu or from your
* toolbar.
*
@@ -76,9 +80,11 @@ int main() // Breakpoint 1
// Put a breakpoint on the following line
+
cout << "Enter percent raise: ";
cin >> raise;
+ raise = 1 + raise;
money = money * raise;
cout << "After your raise you have $";
|