diff options
| -rw-r--r-- | CST116-Ch10-Debugging/CST116-Ch10-Debugging-Chambers.cpp | 2 | ||||
| -rw-r--r-- | CST116-Ch10-Debugging/CST116-Ch10-Psuedocode.txt | 6 | ||||
| -rw-r--r-- | CST116-Ch10-Debugging/CST116-Ch10-Solution.txt | 22 |
3 files changed, 29 insertions, 1 deletions
diff --git a/CST116-Ch10-Debugging/CST116-Ch10-Debugging-Chambers.cpp b/CST116-Ch10-Debugging/CST116-Ch10-Debugging-Chambers.cpp index 9c00299..0d53f74 100644 --- a/CST116-Ch10-Debugging/CST116-Ch10-Debugging-Chambers.cpp +++ b/CST116-Ch10-Debugging/CST116-Ch10-Debugging-Chambers.cpp @@ -121,7 +121,7 @@ void GetAndDisplayWelcomeInfo() } void FunctionOne(int varX[], int varY[]) { - for (int x = 0; x < SIZE; x++) // NOTICE '<' NOT <= + for (int x = 0; x <= 8; x++) // NOTICE '<' NOT <= // Breakpoint 4 // Put breakpoint on the following line varX[x] = x; diff --git a/CST116-Ch10-Debugging/CST116-Ch10-Psuedocode.txt b/CST116-Ch10-Debugging/CST116-Ch10-Psuedocode.txt index e69de29..9ec275f 100644 --- a/CST116-Ch10-Debugging/CST116-Ch10-Psuedocode.txt +++ b/CST116-Ch10-Debugging/CST116-Ch10-Psuedocode.txt @@ -0,0 +1,6 @@ +Take input + Both first and last name seperately +Convert input into variable + Name that variable "x" +Convert x + into both y and z
\ No newline at end of file diff --git a/CST116-Ch10-Debugging/CST116-Ch10-Solution.txt b/CST116-Ch10-Debugging/CST116-Ch10-Solution.txt index e69de29..f8d797e 100644 --- a/CST116-Ch10-Debugging/CST116-Ch10-Solution.txt +++ b/CST116-Ch10-Debugging/CST116-Ch10-Solution.txt @@ -0,0 +1,22 @@ +Please enter your first name: Caleb + +Please enter your last name: Chambers + + + Welcome Caleb Chambers! + Hope all is well + + x y z + + 0 100 100 + 1 101 102 + 2 102 104 + 3 103 106 + 4 104 108 + 5 -858993460 -858993455 + 6 -858993460 -858993454 + 7 -858993460 -858993453 + 8 -858993460 -858993452 + -858993460 -858993460 -1717986920 + +C:\Users\cccha\Source\Repos\cst116-ch10-debugging-TheOtherTonyStark\CST116-Ch10-Debugging\x64\Debug\CST116-Ch10-Debugging-Chambers.exe (process 12832) exited with code 0.
\ No newline at end of file |