diff options
| author | Anibal LopezBonilla <[email protected]> | 2022-10-04 13:56:46 -0700 |
|---|---|---|
| committer | Anibal LopezBonilla <[email protected]> | 2022-10-04 13:56:46 -0700 |
| commit | 9cfc4637c59f013d6d7dad24fad4f8407d310ec9 (patch) | |
| tree | 69ac125048070366f250ad7adf88db90473e10af | |
| parent | Again testing (diff) | |
| download | cst116-ch5-debugging-buzzerbeaterclutch-9cfc4637c59f013d6d7dad24fad4f8407d310ec9.tar.xz cst116-ch5-debugging-buzzerbeaterclutch-9cfc4637c59f013d6d7dad24fad4f8407d310ec9.zip | |
Comment
| -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 * |