From 5d7daeafe09e3298d3e5ceea04f17b2bde340827 Mon Sep 17 00:00:00 2001 From: Joe Traver Date: Wed, 5 Oct 2022 21:57:19 -0700 Subject: Edited the raise calculation --- .vs/ProjectSettings.json | 2 +- .vs/VSWorkspaceState.json | 2 +- .vs/cst116-lab0-debugging-joetraver30/v17/.suo | Bin 57344 -> 56320 bytes .../v17/Browse.VC.db | Bin 16531456 -> 16564224 bytes .../376411d6bae006a4/CH 5 DEBUGGING PROJECT.ipch | Bin 36044800 -> 36044800 bytes .vs/slnx.sqlite | Bin 331776 -> 331776 bytes .../CST116-Lab0-Traver-Pseudo-Code | 3 +-- Ch 5 Debugging Project/Ch 5 Debugging Project.cpp | 7 ++++++- .../Debug/Ch 5 Deb.57683855.tlog/link.read.1.tlog | Bin 7082 -> 7306 bytes .../Debug/Ch 5 Debugging Project.exe | Bin 54272 -> 54272 bytes .../Debug/Ch 5 Debugging Project.ilk | Bin 534704 -> 544104 bytes .../Debug/Ch 5 Debugging Project.obj | Bin 84749 -> 85097 bytes .../Debug/Ch 5 Debugging Project.pdb | Bin 2093056 -> 2134016 bytes Ch 5 Debugging Project/Debug/vc143.idb | Bin 175104 -> 175104 bytes Ch 5 Debugging Project/Debug/vc143.pdb | Bin 462848 -> 462848 bytes CppProperties.json | 21 +++++++++++++++++++++ 16 files changed, 30 insertions(+), 5 deletions(-) create mode 100644 CppProperties.json diff --git a/.vs/ProjectSettings.json b/.vs/ProjectSettings.json index 0cf5ea5..38c5f00 100644 --- a/.vs/ProjectSettings.json +++ b/.vs/ProjectSettings.json @@ -1,3 +1,3 @@ { - "CurrentProjectSetting": "No Configurations" + "CurrentProjectSetting": "x86-Debug" } \ No newline at end of file diff --git a/.vs/VSWorkspaceState.json b/.vs/VSWorkspaceState.json index d265bff..216690d 100644 --- a/.vs/VSWorkspaceState.json +++ b/.vs/VSWorkspaceState.json @@ -3,6 +3,6 @@ "", "\\Ch 5 Debugging Project" ], - "SelectedNode": "\\Ch 5 Debugging Project\\Push Check List.txt", + "SelectedNode": "\\Ch 5 Debugging Project\\Ch 5 Debugging Project.cpp", "PreviewInSolutionExplorer": false } \ No newline at end of file diff --git a/.vs/cst116-lab0-debugging-joetraver30/v17/.suo b/.vs/cst116-lab0-debugging-joetraver30/v17/.suo index ea0d552..7895775 100644 Binary files a/.vs/cst116-lab0-debugging-joetraver30/v17/.suo and b/.vs/cst116-lab0-debugging-joetraver30/v17/.suo differ diff --git a/.vs/cst116-lab0-debugging-joetraver30/v17/Browse.VC.db b/.vs/cst116-lab0-debugging-joetraver30/v17/Browse.VC.db index b62cf07..cb9f00a 100644 Binary files a/.vs/cst116-lab0-debugging-joetraver30/v17/Browse.VC.db and b/.vs/cst116-lab0-debugging-joetraver30/v17/Browse.VC.db differ diff --git a/.vs/cst116-lab0-debugging-joetraver30/v17/ipch/AutoPCH/376411d6bae006a4/CH 5 DEBUGGING PROJECT.ipch b/.vs/cst116-lab0-debugging-joetraver30/v17/ipch/AutoPCH/376411d6bae006a4/CH 5 DEBUGGING PROJECT.ipch index 461afd5..165bb25 100644 Binary files a/.vs/cst116-lab0-debugging-joetraver30/v17/ipch/AutoPCH/376411d6bae006a4/CH 5 DEBUGGING PROJECT.ipch and b/.vs/cst116-lab0-debugging-joetraver30/v17/ipch/AutoPCH/376411d6bae006a4/CH 5 DEBUGGING PROJECT.ipch differ diff --git a/.vs/slnx.sqlite b/.vs/slnx.sqlite index 97bd979..b532302 100644 Binary files a/.vs/slnx.sqlite and b/.vs/slnx.sqlite differ diff --git a/Ch 5 Debugging Project/CST116-Lab0-Traver-Pseudo-Code b/Ch 5 Debugging Project/CST116-Lab0-Traver-Pseudo-Code index 5c93e8b..a0d0e52 100644 --- a/Ch 5 Debugging Project/CST116-Lab0-Traver-Pseudo-Code +++ b/Ch 5 Debugging Project/CST116-Lab0-Traver-Pseudo-Code @@ -17,5 +17,4 @@ money = money * raise print: "After your raise you have $" - -output = money + output = money diff --git a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp index 2971ee8..155ec35 100644 --- a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp +++ b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp @@ -18,6 +18,9 @@ * 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? +* +* -Background code routine that will execute the display- +* * 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. @@ -83,7 +86,9 @@ int main() cout << "Enter percent raise: "; cin >> raise; - money = money * raise; + raise = raise * .01; + + money = money * (1+raise); cout << "After your raise you have $"; cout << money << endl; diff --git a/Ch 5 Debugging Project/Debug/Ch 5 Deb.57683855.tlog/link.read.1.tlog b/Ch 5 Debugging Project/Debug/Ch 5 Deb.57683855.tlog/link.read.1.tlog index 486e80a..d1bd811 100644 Binary files a/Ch 5 Debugging Project/Debug/Ch 5 Deb.57683855.tlog/link.read.1.tlog and b/Ch 5 Debugging Project/Debug/Ch 5 Deb.57683855.tlog/link.read.1.tlog differ diff --git a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.exe b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.exe index 0224882..7997b6b 100644 Binary files a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.exe and b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.exe differ diff --git a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.ilk b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.ilk index 72184e1..1837a1d 100644 Binary files a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.ilk and b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.ilk differ diff --git a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.obj b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.obj index 21dc9fd..e793c68 100644 Binary files a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.obj and b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.obj differ diff --git a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.pdb b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.pdb index 381a37f..170c1e9 100644 Binary files a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.pdb and b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.pdb differ diff --git a/Ch 5 Debugging Project/Debug/vc143.idb b/Ch 5 Debugging Project/Debug/vc143.idb index 5f974ec..3ff66d2 100644 Binary files a/Ch 5 Debugging Project/Debug/vc143.idb and b/Ch 5 Debugging Project/Debug/vc143.idb differ diff --git a/Ch 5 Debugging Project/Debug/vc143.pdb b/Ch 5 Debugging Project/Debug/vc143.pdb index 2799a90..62456f4 100644 Binary files a/Ch 5 Debugging Project/Debug/vc143.pdb and b/Ch 5 Debugging Project/Debug/vc143.pdb differ diff --git a/CppProperties.json b/CppProperties.json new file mode 100644 index 0000000..659bf4e --- /dev/null +++ b/CppProperties.json @@ -0,0 +1,21 @@ +{ + "configurations": [ + { + "inheritEnvironments": [ + "msvc_x86" + ], + "name": "x86-Debug", + "includePath": [ + "${env.INCLUDE}", + "${workspaceRoot}\\**" + ], + "defines": [ + "WIN32", + "_DEBUG", + "UNICODE", + "_UNICODE" + ], + "intelliSenseMode": "windows-msvc-x86" + } + ] +} \ No newline at end of file -- cgit v1.2.3