diff options
Diffstat (limited to 'CST116-Ch5-Debugging/CST116-Ch5-Lopez-Bonilla.cpp')
| -rw-r--r-- | CST116-Ch5-Debugging/CST116-Ch5-Lopez-Bonilla.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CST116-Ch5-Debugging/CST116-Ch5-Lopez-Bonilla.cpp b/CST116-Ch5-Debugging/CST116-Ch5-Lopez-Bonilla.cpp index ebb3097..b2f8c06 100644 --- a/CST116-Ch5-Debugging/CST116-Ch5-Lopez-Bonilla.cpp +++ b/CST116-Ch5-Debugging/CST116-Ch5-Lopez-Bonilla.cpp @@ -43,6 +43,10 @@ * red. This designates that the variable just changed its value. * 9) What happened to our money? I thought a raise was supposed * to increase our money? Stop debugging and fix the calculation. +* +* Correct Code +* raise = money * raise; +* money = money + raise * * Debugging Exercise 3 * |