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/Ch 5 Debugging Project.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 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 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 $"; -- cgit v1.2.3