From 2eb2f2dde77ef5090f6a069f767947b6e6da9dfe Mon Sep 17 00:00:00 2001 From: "smithbenjamin2022@gmail.com" Date: Wed, 12 Oct 2022 14:35:51 -0700 Subject: True Final Push --- .../CST116-CH8-Smith-Pseudo-Code.txt | 3 +++ CST116-Ch8-Debugging/CST116-CH8-Smith.txt | 24 ++++++++++++++++++++++ CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp | 3 +-- 3 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 CST116-Ch8-Debugging/CST116-CH8-Smith-Pseudo-Code.txt create mode 100644 CST116-Ch8-Debugging/CST116-CH8-Smith.txt 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 -using std::cout; -using std::endl; +using namespace std; int main() { -- cgit v1.2.3