aboutsummaryrefslogtreecommitdiff
path: root/Ch 5 Debugging Project
diff options
context:
space:
mode:
Diffstat (limited to 'Ch 5 Debugging Project')
-rw-r--r--Ch 5 Debugging Project/CST116-Debugging-Smith.txt3
-rw-r--r--Ch 5 Debugging Project/CST116-Lab0-pseudo-code.txt6
-rw-r--r--Ch 5 Debugging Project/Ch 5 Debugging Project.cpp19
-rw-r--r--Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/CL.command.1.tlogbin0 -> 970 bytes
-rw-r--r--Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/CL.read.1.tlogbin0 -> 20388 bytes
-rw-r--r--Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/CL.write.1.tlogbin0 -> 900 bytes
-rw-r--r--Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/Ch 5 Debugging Project.lastbuildstate2
-rw-r--r--Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/link.command.1.tlogbin0 -> 1816 bytes
-rw-r--r--Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/link.read.1.tlogbin0 -> 3674 bytes
-rw-r--r--Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/link.write.1.tlogbin0 -> 988 bytes
-rw-r--r--Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.exebin0 -> 72704 bytes
-rw-r--r--Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.exe.recipe11
-rw-r--r--Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.ilkbin0 -> 790896 bytes
-rw-r--r--Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.log2
-rw-r--r--Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.objbin0 -> 90732 bytes
-rw-r--r--Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.pdbbin0 -> 1601536 bytes
-rw-r--r--Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.vcxproj.FileListAbsolute.txt1
-rw-r--r--Ch 5 Debugging Project/x64/Debug/ch 5 debugging project.obj.encbin0 -> 90718 bytes
-rw-r--r--Ch 5 Debugging Project/x64/Debug/vc143.idbbin0 -> 166912 bytes
-rw-r--r--Ch 5 Debugging Project/x64/Debug/vc143.pdbbin0 -> 462848 bytes
20 files changed, 41 insertions, 3 deletions
diff --git a/Ch 5 Debugging Project/CST116-Debugging-Smith.txt b/Ch 5 Debugging Project/CST116-Debugging-Smith.txt
new file mode 100644
index 0000000..2735c95
--- /dev/null
+++ b/Ch 5 Debugging Project/CST116-Debugging-Smith.txt
@@ -0,0 +1,3 @@
+You have $123.45
+Enter percent raise: .1
+After your raise you have $135.795 \ No newline at end of file
diff --git a/Ch 5 Debugging Project/CST116-Lab0-pseudo-code.txt b/Ch 5 Debugging Project/CST116-Lab0-pseudo-code.txt
new file mode 100644
index 0000000..257d12b
--- /dev/null
+++ b/Ch 5 Debugging Project/CST116-Lab0-pseudo-code.txt
@@ -0,0 +1,6 @@
+1. Create the float variable "money" and set its value to 123.45
+2. Create the float value "raise"
+3. Output how much money the variable "money"
+4. Ask the user for the percent raise they wish to set and set their input to the variable "raise"
+5. Add the value of "money" * "raise" to the initial value of "money"
+6. Output the new value of the variable "money" \ No newline at end of file
diff --git a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp
index 6545e9b..469a1f6 100644
--- a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp
+++ b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp
@@ -1,4 +1,14 @@
/********************************************************************
+* Benjamin Smith
+* CST116
+
+Lab #0
+
+IDE, Simple Program, GitHub
+*
+*
+*
+*
* File: Chap_5_Debugging.cpp
*
* General Instructions: Complete each step before proceeding to the
@@ -16,6 +26,7 @@
* the current line being that cout statement, Step Into again.
* 6) What happened? Where are we now? What is all of this nasty
* looking code?
+* --> This is the source code behind certain commands
* 7) Remember, stepping into a predefined routine takes you to the
* code for that routine. If the debugger can't find the code it
* will show the assembly code for that routine.
@@ -37,8 +48,10 @@
* 4) Enter the value .1 and press enter.
* 5) Notice that the current line of execution is now at the
* calculation.
-* 6) Look at your watch. What is the value of money?
-* 7) Hover your mouse pointer over raise. What is its value?
+* 6) Look at your watch. What is the value of money?
+ --> 123.449997
+* 7) Hover your mouse pointer over raise. What is its value?
+ --> .100000001
* 8) Step over the calculation. Notice the watch on money is now
* red. This designates that the variable just changed its value.
* 9) What happened to our money? I thought a raise was supposed
@@ -76,7 +89,7 @@ int main()
cout << "Enter percent raise: ";
cin >> raise;
- money = money * raise;
+ money += money * raise;
cout << "After your raise you have $";
cout << money << endl;
diff --git a/Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/CL.command.1.tlog b/Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/CL.command.1.tlog
new file mode 100644
index 0000000..4766429
--- /dev/null
+++ b/Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/CL.command.1.tlog
Binary files differ
diff --git a/Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/CL.read.1.tlog b/Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/CL.read.1.tlog
new file mode 100644
index 0000000..5f1b9c2
--- /dev/null
+++ b/Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/CL.read.1.tlog
Binary files differ
diff --git a/Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/CL.write.1.tlog b/Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/CL.write.1.tlog
new file mode 100644
index 0000000..fc431fe
--- /dev/null
+++ b/Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/CL.write.1.tlog
Binary files differ
diff --git a/Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/Ch 5 Debugging Project.lastbuildstate b/Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/Ch 5 Debugging Project.lastbuildstate
new file mode 100644
index 0000000..8b09b49
--- /dev/null
+++ b/Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/Ch 5 Debugging Project.lastbuildstate
@@ -0,0 +1,2 @@
+PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.33.31629:TargetPlatformVersion=10.0.19041.0:
+Debug|x64|C:\Users\cowpi\OneDrive\Documents\Visual Studio 2022\Homework\Ch 5 Debugging Project\|
diff --git a/Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/link.command.1.tlog b/Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/link.command.1.tlog
new file mode 100644
index 0000000..098d981
--- /dev/null
+++ b/Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/link.command.1.tlog
Binary files differ
diff --git a/Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/link.read.1.tlog b/Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/link.read.1.tlog
new file mode 100644
index 0000000..836cb21
--- /dev/null
+++ b/Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/link.read.1.tlog
Binary files differ
diff --git a/Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/link.write.1.tlog b/Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/link.write.1.tlog
new file mode 100644
index 0000000..bf3e417
--- /dev/null
+++ b/Ch 5 Debugging Project/x64/Debug/Ch 5 Deb.57683855.tlog/link.write.1.tlog
Binary files differ
diff --git a/Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.exe b/Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.exe
new file mode 100644
index 0000000..9c3a8e9
--- /dev/null
+++ b/Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.exe
Binary files differ
diff --git a/Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.exe.recipe b/Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.exe.recipe
new file mode 100644
index 0000000..14f87f5
--- /dev/null
+++ b/Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.exe.recipe
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project>
+ <ProjectOutputs>
+ <ProjectOutput>
+ <FullPath>C:\Users\cowpi\OneDrive\Documents\Visual Studio 2022\Homework\Ch 5 Debugging Project\x64\Debug\Ch 5 Debugging Project.exe</FullPath>
+ </ProjectOutput>
+ </ProjectOutputs>
+ <ContentFiles />
+ <SatelliteDlls />
+ <NonRecipeFileRefs />
+</Project> \ No newline at end of file
diff --git a/Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.ilk b/Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.ilk
new file mode 100644
index 0000000..13694f7
--- /dev/null
+++ b/Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.ilk
Binary files differ
diff --git a/Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.log b/Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.log
new file mode 100644
index 0000000..c1a6d68
--- /dev/null
+++ b/Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.log
@@ -0,0 +1,2 @@
+ Ch 5 Debugging Project.cpp
+ Ch 5 Debugging Project.vcxproj -> C:\Users\cowpi\OneDrive\Documents\Visual Studio 2022\Homework\Ch 5 Debugging Project\x64\Debug\Ch 5 Debugging Project.exe
diff --git a/Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.obj b/Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.obj
new file mode 100644
index 0000000..3dd7794
--- /dev/null
+++ b/Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.obj
Binary files differ
diff --git a/Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.pdb b/Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.pdb
new file mode 100644
index 0000000..ff7e9f8
--- /dev/null
+++ b/Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.pdb
Binary files differ
diff --git a/Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.vcxproj.FileListAbsolute.txt b/Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.vcxproj.FileListAbsolute.txt
new file mode 100644
index 0000000..0a7e2b4
--- /dev/null
+++ b/Ch 5 Debugging Project/x64/Debug/Ch 5 Debugging Project.vcxproj.FileListAbsolute.txt
@@ -0,0 +1 @@
+C:\Users\cowpi\OneDrive\Documents\Visual Studio 2022\Homework\Ch 5 Debugging Project\x64\Debug\Ch 5 Debugging Project.exe
diff --git a/Ch 5 Debugging Project/x64/Debug/ch 5 debugging project.obj.enc b/Ch 5 Debugging Project/x64/Debug/ch 5 debugging project.obj.enc
new file mode 100644
index 0000000..4e24419
--- /dev/null
+++ b/Ch 5 Debugging Project/x64/Debug/ch 5 debugging project.obj.enc
Binary files differ
diff --git a/Ch 5 Debugging Project/x64/Debug/vc143.idb b/Ch 5 Debugging Project/x64/Debug/vc143.idb
new file mode 100644
index 0000000..3fac93a
--- /dev/null
+++ b/Ch 5 Debugging Project/x64/Debug/vc143.idb
Binary files differ
diff --git a/Ch 5 Debugging Project/x64/Debug/vc143.pdb b/Ch 5 Debugging Project/x64/Debug/vc143.pdb
new file mode 100644
index 0000000..69c4ee1
--- /dev/null
+++ b/Ch 5 Debugging Project/x64/Debug/vc143.pdb
Binary files differ