From 13f57ff0347e4a40c6e2e7fa4e21d012350b0d81 Mon Sep 17 00:00:00 2001 From: DoolyBoi Date: Thu, 29 Sep 2022 16:16:36 -0700 Subject: fix code to make raise actuallt raise --- Ch 5 Debugging Project/CST116-Debugging.sln | 31 +++++++++++++++++++++++ Ch 5 Debugging Project/Ch 5 Debugging Project.cpp | 10 ++++++-- Ch 5 Debugging Project/Ch 5 Debugging Project.sln | 31 ----------------------- 3 files changed, 39 insertions(+), 33 deletions(-) create mode 100644 Ch 5 Debugging Project/CST116-Debugging.sln delete mode 100644 Ch 5 Debugging Project/Ch 5 Debugging Project.sln diff --git a/Ch 5 Debugging Project/CST116-Debugging.sln b/Ch 5 Debugging Project/CST116-Debugging.sln new file mode 100644 index 0000000..b289923 --- /dev/null +++ b/Ch 5 Debugging Project/CST116-Debugging.sln @@ -0,0 +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 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 $"; diff --git a/Ch 5 Debugging Project/Ch 5 Debugging Project.sln b/Ch 5 Debugging Project/Ch 5 Debugging Project.sln deleted file mode 100644 index 71bfae3..0000000 --- a/Ch 5 Debugging Project/Ch 5 Debugging Project.sln +++ /dev/null @@ -1,31 +0,0 @@ - -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 -- cgit v1.2.3