diff options
| author | Trenton Stark <[email protected]> | 2022-10-14 23:37:32 -0700 |
|---|---|---|
| committer | Trenton Stark <[email protected]> | 2022-10-14 23:37:32 -0700 |
| commit | 89709813d00f2ecb46514733e4cde8361314ece1 (patch) | |
| tree | 841ab55a2b4b858dc7395d073cd6eb50aebd7b38 | |
| parent | Completed Exercise 2 (diff) | |
| download | cst116-ch9-debugging-stark-89709813d00f2ecb46514733e4cde8361314ece1.tar.xz cst116-ch9-debugging-stark-89709813d00f2ecb46514733e4cde8361314ece1.zip | |
Completed exercise 3
| -rw-r--r-- | CST116-Ch9-Debugging/CST116-Ch9-Debugging.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CST116-Ch9-Debugging/CST116-Ch9-Debugging.cpp b/CST116-Ch9-Debugging/CST116-Ch9-Debugging.cpp index 6aa1c4d..b8b4487 100644 --- a/CST116-Ch9-Debugging/CST116-Ch9-Debugging.cpp +++ b/CST116-Ch9-Debugging/CST116-Ch9-Debugging.cpp @@ -50,6 +50,7 @@ * 4) Step into the PrintResults function.
* 5) Age is 7300? Not even Ralph is that old.
* 6) Why did the values for both variables change?
+* The parameters for the days and age have been inputed in reverse
* 7) Stop debugging and fix the error.
*
* Debugging Exercise 4
@@ -85,7 +86,7 @@ int main() // Breakpoint 2
// Put breakpoint on the following line
- PrintResults(age, days);
+ PrintResults(days, age);
return 0;
}
|