aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author[email protected] <[email protected]>2022-10-12 14:35:51 -0700
committer[email protected] <[email protected]>2022-10-12 14:35:51 -0700
commit2eb2f2dde77ef5090f6a069f767947b6e6da9dfe (patch)
tree70f6c0620b4bdc3e201bea590e788f73431d1f9e
parentFinal Psuh (diff)
downloadcst116-chapter8-debugging-smith-benjamin-main.tar.xz
cst116-chapter8-debugging-smith-benjamin-main.zip
True Final PushHEADmain
-rw-r--r--CST116-Ch8-Debugging/CST116-CH8-Smith-Pseudo-Code.txt3
-rw-r--r--CST116-Ch8-Debugging/CST116-CH8-Smith.txt24
-rw-r--r--CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp3
3 files changed, 28 insertions, 2 deletions
diff --git a/CST116-Ch8-Debugging/CST116-CH8-Smith-Pseudo-Code.txt b/CST116-Ch8-Debugging/CST116-CH8-Smith-Pseudo-Code.txt
new file mode 100644
index 0000000..27b6024
--- /dev/null
+++ b/CST116-Ch8-Debugging/CST116-CH8-Smith-Pseudo-Code.txt
@@ -0,0 +1,3 @@
+1) Initialize two integers 'i' and 'count' and set 'i' to be 0
+2) While i is less than 10, output the value of i and increase it by 1
+3) Run a for loop increasing count by 1 while count is less than 10, outputing each count value \ No newline at end of file
diff --git a/CST116-Ch8-Debugging/CST116-CH8-Smith.txt b/CST116-Ch8-Debugging/CST116-CH8-Smith.txt
new file mode 100644
index 0000000..d9fa633
--- /dev/null
+++ b/CST116-Ch8-Debugging/CST116-CH8-Smith.txt
@@ -0,0 +1,24 @@
+0
+1
+2
+3
+4
+5
+6
+7
+8
+9
+0
+1
+2
+3
+4
+5
+6
+7
+8
+9
+
+C:\Users\cowpi\Source\Repos\cst116-chapter8-debugging-Smith-Benjamin\CST116-Ch8-Debugging\x64\Debug\CST116-Ch8-Debugging.exe (process 112) exited with code 0.
+To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
+Press any key to close this window . . . \ 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 2059456..6b0b61b 100644
--- a/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp
+++ b/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp
@@ -55,8 +55,7 @@
* 7) Fix the problem and re-run to verify.
********************************************************************/
#include <iostream>
-using std::cout;
-using std::endl;
+using namespace std;
int main()
{