aboutsummaryrefslogtreecommitdiff
path: root/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp
diff options
context:
space:
mode:
authorDoolyBoi <[email protected]>2022-09-29 16:16:36 -0700
committerDoolyBoi <[email protected]>2022-09-29 16:16:36 -0700
commit13f57ff0347e4a40c6e2e7fa4e21d012350b0d81 (patch)
tree0901b7a1fe73e15c7e2d488337ce9295c79ef6fc /Ch 5 Debugging Project/Ch 5 Debugging Project.cpp
parentadded spaces and test test (diff)
downloadcst116-lab0-debugging-abd00l4h-13f57ff0347e4a40c6e2e7fa4e21d012350b0d81.tar.xz
cst116-lab0-debugging-abd00l4h-13f57ff0347e4a40c6e2e7fa4e21d012350b0d81.zip
fix code to make raise actuallt raise
Diffstat (limited to 'Ch 5 Debugging Project/Ch 5 Debugging Project.cpp')
-rw-r--r--Ch 5 Debugging Project/Ch 5 Debugging Project.cpp10
1 files changed, 8 insertions, 2 deletions
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 $";