aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjacobdw22 <[email protected]>2022-10-22 18:18:00 -0700
committerjacobdw22 <[email protected]>2022-10-22 18:18:00 -0700
commit2b8d879109465008e3cdfd89c9b4e2fbc97e0456 (patch)
tree54b7742da428f7a4a27d4880bed612f17663bf58
parentsimple changes (diff)
downloadcst116-ch10-debugging-jacobdw22-2b8d879109465008e3cdfd89c9b4e2fbc97e0456.tar.xz
cst116-ch10-debugging-jacobdw22-2b8d879109465008e3cdfd89c9b4e2fbc97e0456.zip
Final Changes #1
-rw-r--r--cst116-ch10-debugging-wilson-pseudo-code.txt10
1 files changed, 9 insertions, 1 deletions
diff --git a/cst116-ch10-debugging-wilson-pseudo-code.txt b/cst116-ch10-debugging-wilson-pseudo-code.txt
index 8b89fb9..0c8ab5a 100644
--- a/cst116-ch10-debugging-wilson-pseudo-code.txt
+++ b/cst116-ch10-debugging-wilson-pseudo-code.txt
@@ -18,4 +18,12 @@ FOR x = 0, IF x < SIZE, x++;
SET varX[1] = { 99 };
FOR x = 0, IF x < SIZE, x++;
- varZ[x] = varX[x] + varY[x]; \ No newline at end of file
+ varZ[x] = varX[x] + varY[x];
+
+
+DEFINE int x;
+
+DISPLAY " \t x \t y \t z\n\n";
+
+ for (x = 0; x < SIZE; x++);
+ DISPLAY << "\t" << set width(3) << varX[x] "\t " << varY[x] "\t " << varZ[x] << endl;