From d8ccf34876f079a6bfbe02c2620c33350036d12b Mon Sep 17 00:00:00 2001 From: "smithbenjamin2022@gmail.com" Date: Wed, 12 Oct 2022 14:11:26 -0700 Subject: Test 2 --- .gitignore | 1 + CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp | 8 ++++---- .../Debug/CST116-C.b0d44148.tlog/CL.command.1.tlog | Bin 0 -> 962 bytes .../x64/Debug/CST116-C.b0d44148.tlog/CL.read.1.tlog | Bin 0 -> 19788 bytes .../x64/Debug/CST116-C.b0d44148.tlog/CL.write.1.tlog | Bin 0 -> 892 bytes .../CST116-Ch7-Debugging.lastbuildstate | 2 ++ .../Debug/CST116-C.b0d44148.tlog/link.command.1.tlog | Bin 0 -> 1792 bytes .../x64/Debug/CST116-C.b0d44148.tlog/link.read.1.tlog | Bin 0 -> 3666 bytes .../Debug/CST116-C.b0d44148.tlog/link.write.1.tlog | Bin 0 -> 972 bytes .../x64/Debug/CST116-Ch7-Debugging.exe | Bin 0 -> 68608 bytes .../x64/Debug/CST116-Ch7-Debugging.exe.recipe | 11 +++++++++++ .../x64/Debug/CST116-Ch7-Debugging.ilk | Bin 0 -> 706312 bytes .../x64/Debug/CST116-Ch7-Debugging.log | 2 ++ .../x64/Debug/CST116-Ch7-Debugging.obj | Bin 0 -> 76311 bytes .../x64/Debug/CST116-Ch7-Debugging.pdb | Bin 0 -> 1470464 bytes .../CST116-Ch7-Debugging.vcxproj.FileListAbsolute.txt | 1 + .../x64/Debug/cst116-ch7-debugging.obj.enc | Bin 0 -> 76318 bytes CST116-Ch7-Debugging/x64/Debug/vc143.idb | Bin 0 -> 166912 bytes CST116-Ch7-Debugging/x64/Debug/vc143.pdb | Bin 0 -> 405504 bytes 19 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 CST116-Ch7-Debugging/x64/Debug/CST116-C.b0d44148.tlog/CL.command.1.tlog create mode 100644 CST116-Ch7-Debugging/x64/Debug/CST116-C.b0d44148.tlog/CL.read.1.tlog create mode 100644 CST116-Ch7-Debugging/x64/Debug/CST116-C.b0d44148.tlog/CL.write.1.tlog create mode 100644 CST116-Ch7-Debugging/x64/Debug/CST116-C.b0d44148.tlog/CST116-Ch7-Debugging.lastbuildstate create mode 100644 CST116-Ch7-Debugging/x64/Debug/CST116-C.b0d44148.tlog/link.command.1.tlog create mode 100644 CST116-Ch7-Debugging/x64/Debug/CST116-C.b0d44148.tlog/link.read.1.tlog create mode 100644 CST116-Ch7-Debugging/x64/Debug/CST116-C.b0d44148.tlog/link.write.1.tlog create mode 100644 CST116-Ch7-Debugging/x64/Debug/CST116-Ch7-Debugging.exe create mode 100644 CST116-Ch7-Debugging/x64/Debug/CST116-Ch7-Debugging.exe.recipe create mode 100644 CST116-Ch7-Debugging/x64/Debug/CST116-Ch7-Debugging.ilk create mode 100644 CST116-Ch7-Debugging/x64/Debug/CST116-Ch7-Debugging.log create mode 100644 CST116-Ch7-Debugging/x64/Debug/CST116-Ch7-Debugging.obj create mode 100644 CST116-Ch7-Debugging/x64/Debug/CST116-Ch7-Debugging.pdb create mode 100644 CST116-Ch7-Debugging/x64/Debug/CST116-Ch7-Debugging.vcxproj.FileListAbsolute.txt create mode 100644 CST116-Ch7-Debugging/x64/Debug/cst116-ch7-debugging.obj.enc create mode 100644 CST116-Ch7-Debugging/x64/Debug/vc143.idb create mode 100644 CST116-Ch7-Debugging/x64/Debug/vc143.pdb diff --git a/.gitignore b/.gitignore index f945c9e..c30c655 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ ################################################################################ /.vs/cst116-ch7-debugging-Smith-Benjamin/v17 +/CST116-Ch7-Debugging/.vs/CST116-Ch7-Debugging diff --git a/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp b/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp index f64adfe..b97eb32 100644 --- a/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp +++ b/CST116-Ch7-Debugging/CST116-Ch7-Debugging.cpp @@ -13,6 +13,7 @@ * the value in age is what you typed in. * 5) Step over the if statement. * 6) Why did the value in age change? +* It used the = in the if statement instead of ==, which changed the value rather than check it * 7) Fix the problem and repeat Steps 2 – 5 to verify the * problem was corrected. * 8) Stop debugging. @@ -26,6 +27,7 @@ * 4) Verify that 25 is still stored in age. * 5) Step over the else if. * 6) Why is the program going to print "Teenager" for an age of 25? +* It's checking for values less than or equal to 19 OR greater than or equal to 12, which is all real numbers * 7) Fix the problem and repeat Steps 1 – 5 to verify the * problem was corrected. * 8) Stop debugging. @@ -43,9 +45,7 @@ ********************************************************************/ #include -using std::cout; -using std::endl; -using std::cin; +using namespace std; int main() { @@ -56,7 +56,7 @@ int main() // Breakpoint 1 // Put a breakpoint on the following line - if (age = 1) + if (age == 1) cout << "First Birthday" << endl; else if (age >= 12 || age <= 19) cout << "Teenager" << endl; diff --git a/CST116-Ch7-Debugging/x64/Debug/CST116-C.b0d44148.tlog/CL.command.1.tlog b/CST116-Ch7-Debugging/x64/Debug/CST116-C.b0d44148.tlog/CL.command.1.tlog new file mode 100644 index 0000000..e3ce30e Binary files /dev/null and b/CST116-Ch7-Debugging/x64/Debug/CST116-C.b0d44148.tlog/CL.command.1.tlog differ diff --git a/CST116-Ch7-Debugging/x64/Debug/CST116-C.b0d44148.tlog/CL.read.1.tlog b/CST116-Ch7-Debugging/x64/Debug/CST116-C.b0d44148.tlog/CL.read.1.tlog new file mode 100644 index 0000000..7ad9e91 Binary files /dev/null and b/CST116-Ch7-Debugging/x64/Debug/CST116-C.b0d44148.tlog/CL.read.1.tlog differ diff --git a/CST116-Ch7-Debugging/x64/Debug/CST116-C.b0d44148.tlog/CL.write.1.tlog b/CST116-Ch7-Debugging/x64/Debug/CST116-C.b0d44148.tlog/CL.write.1.tlog new file mode 100644 index 0000000..ce7b676 Binary files /dev/null and b/CST116-Ch7-Debugging/x64/Debug/CST116-C.b0d44148.tlog/CL.write.1.tlog differ diff --git a/CST116-Ch7-Debugging/x64/Debug/CST116-C.b0d44148.tlog/CST116-Ch7-Debugging.lastbuildstate b/CST116-Ch7-Debugging/x64/Debug/CST116-C.b0d44148.tlog/CST116-Ch7-Debugging.lastbuildstate new file mode 100644 index 0000000..9b9b566 --- /dev/null +++ b/CST116-Ch7-Debugging/x64/Debug/CST116-C.b0d44148.tlog/CST116-Ch7-Debugging.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.33.31629:TargetPlatformVersion=10.0.19041.0: +Debug|x64|C:\Users\cowpi\Source\Repos\cst116-ch7-debugging-Smith-Benjamin\CST116-Ch7-Debugging\| diff --git a/CST116-Ch7-Debugging/x64/Debug/CST116-C.b0d44148.tlog/link.command.1.tlog b/CST116-Ch7-Debugging/x64/Debug/CST116-C.b0d44148.tlog/link.command.1.tlog new file mode 100644 index 0000000..727f649 Binary files /dev/null and b/CST116-Ch7-Debugging/x64/Debug/CST116-C.b0d44148.tlog/link.command.1.tlog differ diff --git a/CST116-Ch7-Debugging/x64/Debug/CST116-C.b0d44148.tlog/link.read.1.tlog b/CST116-Ch7-Debugging/x64/Debug/CST116-C.b0d44148.tlog/link.read.1.tlog new file mode 100644 index 0000000..4391d2c Binary files /dev/null and b/CST116-Ch7-Debugging/x64/Debug/CST116-C.b0d44148.tlog/link.read.1.tlog differ diff --git a/CST116-Ch7-Debugging/x64/Debug/CST116-C.b0d44148.tlog/link.write.1.tlog b/CST116-Ch7-Debugging/x64/Debug/CST116-C.b0d44148.tlog/link.write.1.tlog new file mode 100644 index 0000000..728ed3a Binary files /dev/null and b/CST116-Ch7-Debugging/x64/Debug/CST116-C.b0d44148.tlog/link.write.1.tlog differ diff --git a/CST116-Ch7-Debugging/x64/Debug/CST116-Ch7-Debugging.exe b/CST116-Ch7-Debugging/x64/Debug/CST116-Ch7-Debugging.exe new file mode 100644 index 0000000..afab05c Binary files /dev/null and b/CST116-Ch7-Debugging/x64/Debug/CST116-Ch7-Debugging.exe differ diff --git a/CST116-Ch7-Debugging/x64/Debug/CST116-Ch7-Debugging.exe.recipe b/CST116-Ch7-Debugging/x64/Debug/CST116-Ch7-Debugging.exe.recipe new file mode 100644 index 0000000..3b9bbd8 --- /dev/null +++ b/CST116-Ch7-Debugging/x64/Debug/CST116-Ch7-Debugging.exe.recipe @@ -0,0 +1,11 @@ + + + + + C:\Users\cowpi\Source\Repos\cst116-ch7-debugging-Smith-Benjamin\CST116-Ch7-Debugging\x64\Debug\CST116-Ch7-Debugging.exe + + + + + + \ No newline at end of file diff --git a/CST116-Ch7-Debugging/x64/Debug/CST116-Ch7-Debugging.ilk b/CST116-Ch7-Debugging/x64/Debug/CST116-Ch7-Debugging.ilk new file mode 100644 index 0000000..cfa1815 Binary files /dev/null and b/CST116-Ch7-Debugging/x64/Debug/CST116-Ch7-Debugging.ilk differ diff --git a/CST116-Ch7-Debugging/x64/Debug/CST116-Ch7-Debugging.log b/CST116-Ch7-Debugging/x64/Debug/CST116-Ch7-Debugging.log new file mode 100644 index 0000000..ddd352b --- /dev/null +++ b/CST116-Ch7-Debugging/x64/Debug/CST116-Ch7-Debugging.log @@ -0,0 +1,2 @@ + CST116-Ch7-Debugging.cpp + CST116-Ch7-Debugging.vcxproj -> C:\Users\cowpi\Source\Repos\cst116-ch7-debugging-Smith-Benjamin\CST116-Ch7-Debugging\x64\Debug\CST116-Ch7-Debugging.exe diff --git a/CST116-Ch7-Debugging/x64/Debug/CST116-Ch7-Debugging.obj b/CST116-Ch7-Debugging/x64/Debug/CST116-Ch7-Debugging.obj new file mode 100644 index 0000000..755e060 Binary files /dev/null and b/CST116-Ch7-Debugging/x64/Debug/CST116-Ch7-Debugging.obj differ diff --git a/CST116-Ch7-Debugging/x64/Debug/CST116-Ch7-Debugging.pdb b/CST116-Ch7-Debugging/x64/Debug/CST116-Ch7-Debugging.pdb new file mode 100644 index 0000000..ea61d89 Binary files /dev/null and b/CST116-Ch7-Debugging/x64/Debug/CST116-Ch7-Debugging.pdb differ diff --git a/CST116-Ch7-Debugging/x64/Debug/CST116-Ch7-Debugging.vcxproj.FileListAbsolute.txt b/CST116-Ch7-Debugging/x64/Debug/CST116-Ch7-Debugging.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..fc531f2 --- /dev/null +++ b/CST116-Ch7-Debugging/x64/Debug/CST116-Ch7-Debugging.vcxproj.FileListAbsolute.txt @@ -0,0 +1 @@ +C:\Users\cowpi\source\repos\cst116-ch7-debugging-Smith-Benjamin\CST116-Ch7-Debugging\x64\Debug\CST116-Ch7-Debugging.exe diff --git a/CST116-Ch7-Debugging/x64/Debug/cst116-ch7-debugging.obj.enc b/CST116-Ch7-Debugging/x64/Debug/cst116-ch7-debugging.obj.enc new file mode 100644 index 0000000..cf67e3d Binary files /dev/null and b/CST116-Ch7-Debugging/x64/Debug/cst116-ch7-debugging.obj.enc differ diff --git a/CST116-Ch7-Debugging/x64/Debug/vc143.idb b/CST116-Ch7-Debugging/x64/Debug/vc143.idb new file mode 100644 index 0000000..d4e4ec2 Binary files /dev/null and b/CST116-Ch7-Debugging/x64/Debug/vc143.idb differ diff --git a/CST116-Ch7-Debugging/x64/Debug/vc143.pdb b/CST116-Ch7-Debugging/x64/Debug/vc143.pdb new file mode 100644 index 0000000..adeedf7 Binary files /dev/null and b/CST116-Ch7-Debugging/x64/Debug/vc143.pdb differ -- cgit v1.2.3