diff options
| author | Morgan Cyrus <[email protected]> | 2022-10-12 21:47:12 -0700 |
|---|---|---|
| committer | Morgan Cyrus <[email protected]> | 2022-10-12 21:47:12 -0700 |
| commit | 7f8c694907454a988311eb122e35c19c0876003e (patch) | |
| tree | 6516b4a6708fcc989c9067e481b8586435be0113 | |
| parent | Finished all exercises (diff) | |
| download | cst116-chapter8-cyrus-main.tar.xz cst116-chapter8-cyrus-main.zip | |
| -rw-r--r-- | CST116-Ch8-Debugging/CST 116-CH8-Cyrus.txt | 25 | ||||
| -rw-r--r-- | CST116-Ch8-Debugging/CST116-CH8-Cyrus-pseudo-code.txt | 13 | ||||
| -rw-r--r-- | CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp | 8 |
3 files changed, 42 insertions, 4 deletions
diff --git a/CST116-Ch8-Debugging/CST 116-CH8-Cyrus.txt b/CST116-Ch8-Debugging/CST 116-CH8-Cyrus.txt new file mode 100644 index 0000000..20a53ce --- /dev/null +++ b/CST116-Ch8-Debugging/CST 116-CH8-Cyrus.txt @@ -0,0 +1,25 @@ +0 +1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +0 +1 +2 +3 +4 +5 +6 +7 +8 +9 +10 + +C:\Users\Morgan\Source\Repos\cst116-chapter8-debugging-radioflyer32\CST116-Ch8-Debugging\Debug\CST116-Ch8-Debugging.exe (process 13700) exited with code 0. +Press any key to close this window . . .
\ No newline at end of file diff --git a/CST116-Ch8-Debugging/CST116-CH8-Cyrus-pseudo-code.txt b/CST116-Ch8-Debugging/CST116-CH8-Cyrus-pseudo-code.txt new file mode 100644 index 0000000..e80af58 --- /dev/null +++ b/CST116-Ch8-Debugging/CST116-CH8-Cyrus-pseudo-code.txt @@ -0,0 +1,13 @@ +create int i and set to be 0; +create int count; + +while i < 10, print i, increment the value of i by one and create a new line; + +print i and create a new line; + +set count to be 0; +while count is less than 10, print count and create a new line then increment the value of count by 1; + +print count and create a new line; + +end;
\ No newline at end of file diff --git a/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp b/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp index e24d5b8..e08c018 100644 --- a/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp +++ b/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp @@ -38,10 +38,10 @@ * done
* set the while loop to:
* while (i <= 0)
- {
- cout << i << endl;
- }
-
+* {
+* cout << i << endl;
+* }
+*
* This resolves the issue and the while loop executes.
*
* 10) Stop debugging.
|