diff options
| author | Joseph Williams <[email protected]> | 2022-09-29 16:33:11 -0700 |
|---|---|---|
| committer | Joseph Williams <[email protected]> | 2022-09-29 16:33:11 -0700 |
| commit | abcdbee97218e6309213a623653a54ed10945072 (patch) | |
| tree | 8ea758076e4b76606d878814c857ae608f1beddc | |
| parent | Setting up GitHub Classroom Feedback (diff) | |
| download | cst116-ch6-debugging-allthenamesaretaken3141-abcdbee97218e6309213a623653a54ed10945072.tar.xz cst116-ch6-debugging-allthenamesaretaken3141-abcdbee97218e6309213a623653a54ed10945072.zip | |
39 files changed, 64 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a3204dd --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +################################################################################ +# This .gitignore file was automatically created by Microsoft(R) Visual Studio. +################################################################################ + +*.opendb diff --git a/.vs/cst116-ch6-debugging-AllTheNamesAreTaken3141/v17/.suo b/.vs/cst116-ch6-debugging-AllTheNamesAreTaken3141/v17/.suo Binary files differnew file mode 100644 index 0000000..5b7d860 --- /dev/null +++ b/.vs/cst116-ch6-debugging-AllTheNamesAreTaken3141/v17/.suo diff --git a/CST116-Ch6-Debugging/.vs/CST116-Ch6-Debugging/FileContentIndex/92d2abd3-49cc-4349-95c2-d12af6fc834e.vsidx b/CST116-Ch6-Debugging/.vs/CST116-Ch6-Debugging/FileContentIndex/92d2abd3-49cc-4349-95c2-d12af6fc834e.vsidx Binary files differnew file mode 100644 index 0000000..5504d98 --- /dev/null +++ b/CST116-Ch6-Debugging/.vs/CST116-Ch6-Debugging/FileContentIndex/92d2abd3-49cc-4349-95c2-d12af6fc834e.vsidx diff --git a/CST116-Ch6-Debugging/.vs/CST116-Ch6-Debugging/FileContentIndex/a22e8f3d-8c85-4b7b-af7f-52d5a7976759.vsidx b/CST116-Ch6-Debugging/.vs/CST116-Ch6-Debugging/FileContentIndex/a22e8f3d-8c85-4b7b-af7f-52d5a7976759.vsidx Binary files differnew file mode 100644 index 0000000..cf74c79 --- /dev/null +++ b/CST116-Ch6-Debugging/.vs/CST116-Ch6-Debugging/FileContentIndex/a22e8f3d-8c85-4b7b-af7f-52d5a7976759.vsidx diff --git a/CST116-Ch6-Debugging/.vs/CST116-Ch6-Debugging/FileContentIndex/aef8af21-609a-42fb-b6c1-1c88cfeb1f0d.vsidx b/CST116-Ch6-Debugging/.vs/CST116-Ch6-Debugging/FileContentIndex/aef8af21-609a-42fb-b6c1-1c88cfeb1f0d.vsidx Binary files differnew file mode 100644 index 0000000..e462145 --- /dev/null +++ b/CST116-Ch6-Debugging/.vs/CST116-Ch6-Debugging/FileContentIndex/aef8af21-609a-42fb-b6c1-1c88cfeb1f0d.vsidx diff --git a/CST116-Ch6-Debugging/.vs/CST116-Ch6-Debugging/FileContentIndex/f7b850df-b94a-40fa-a80a-8a5843a7df52.vsidx b/CST116-Ch6-Debugging/.vs/CST116-Ch6-Debugging/FileContentIndex/f7b850df-b94a-40fa-a80a-8a5843a7df52.vsidx Binary files differnew file mode 100644 index 0000000..4b9c3eb --- /dev/null +++ b/CST116-Ch6-Debugging/.vs/CST116-Ch6-Debugging/FileContentIndex/f7b850df-b94a-40fa-a80a-8a5843a7df52.vsidx diff --git a/CST116-Ch6-Debugging/.vs/CST116-Ch6-Debugging/FileContentIndex/read.lock b/CST116-Ch6-Debugging/.vs/CST116-Ch6-Debugging/FileContentIndex/read.lock new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/CST116-Ch6-Debugging/.vs/CST116-Ch6-Debugging/FileContentIndex/read.lock diff --git a/CST116-Ch6-Debugging/.vs/CST116-Ch6-Debugging/v17/.suo b/CST116-Ch6-Debugging/.vs/CST116-Ch6-Debugging/v17/.suo Binary files differnew file mode 100644 index 0000000..9c27c3a --- /dev/null +++ b/CST116-Ch6-Debugging/.vs/CST116-Ch6-Debugging/v17/.suo diff --git a/CST116-Ch6-Debugging/.vs/CST116-Ch6-Debugging/v17/Browse.VC.db b/CST116-Ch6-Debugging/.vs/CST116-Ch6-Debugging/v17/Browse.VC.db Binary files differnew file mode 100644 index 0000000..487a10a --- /dev/null +++ b/CST116-Ch6-Debugging/.vs/CST116-Ch6-Debugging/v17/Browse.VC.db diff --git a/CST116-Ch6-Debugging/.vs/CST116-Ch6-Debugging/v17/Browse.VC.db-shm b/CST116-Ch6-Debugging/.vs/CST116-Ch6-Debugging/v17/Browse.VC.db-shm Binary files differnew file mode 100644 index 0000000..b1d1580 --- /dev/null +++ b/CST116-Ch6-Debugging/.vs/CST116-Ch6-Debugging/v17/Browse.VC.db-shm diff --git a/CST116-Ch6-Debugging/.vs/CST116-Ch6-Debugging/v17/Browse.VC.db-wal b/CST116-Ch6-Debugging/.vs/CST116-Ch6-Debugging/v17/Browse.VC.db-wal new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/CST116-Ch6-Debugging/.vs/CST116-Ch6-Debugging/v17/Browse.VC.db-wal diff --git a/CST116-Ch6-Debugging/.vs/CST116-Ch6-Debugging/v17/ipch/AutoPCH/31ee0b1b346c6ca8/CST116-CH6-DEBUGGING-WILLIAMS.ipch b/CST116-Ch6-Debugging/.vs/CST116-Ch6-Debugging/v17/ipch/AutoPCH/31ee0b1b346c6ca8/CST116-CH6-DEBUGGING-WILLIAMS.ipch Binary files differnew file mode 100644 index 0000000..29e902b --- /dev/null +++ b/CST116-Ch6-Debugging/.vs/CST116-Ch6-Debugging/v17/ipch/AutoPCH/31ee0b1b346c6ca8/CST116-CH6-DEBUGGING-WILLIAMS.ipch diff --git a/CST116-Ch6-Debugging/.vs/CST116-Ch6-Debugging/v17/ipch/AutoPCH/93f02099bc3f4db7/VCTMP11364_384356.CST116-CH6-DEBUGGING.00000000.ipch b/CST116-Ch6-Debugging/.vs/CST116-Ch6-Debugging/v17/ipch/AutoPCH/93f02099bc3f4db7/VCTMP11364_384356.CST116-CH6-DEBUGGING.00000000.ipch Binary files differnew file mode 100644 index 0000000..38478d2 --- /dev/null +++ b/CST116-Ch6-Debugging/.vs/CST116-Ch6-Debugging/v17/ipch/AutoPCH/93f02099bc3f4db7/VCTMP11364_384356.CST116-CH6-DEBUGGING.00000000.ipch diff --git a/CST116-Ch6-Debugging/.vs/CST116-Ch6-Debugging/v17/ipch/AutoPCH/ec17276e849836b5/CST116-CH6-DEBUGGING.ipch b/CST116-Ch6-Debugging/.vs/CST116-Ch6-Debugging/v17/ipch/AutoPCH/ec17276e849836b5/CST116-CH6-DEBUGGING.ipch Binary files differnew file mode 100644 index 0000000..326d661 --- /dev/null +++ b/CST116-Ch6-Debugging/.vs/CST116-Ch6-Debugging/v17/ipch/AutoPCH/ec17276e849836b5/CST116-CH6-DEBUGGING.ipch diff --git a/CST116-Ch6-Debugging/CST116-Ch6-Debugging-Williams.txt b/CST116-Ch6-Debugging/CST116-Ch6-Debugging-Williams.txt new file mode 100644 index 0000000..f03d7d1 --- /dev/null +++ b/CST116-Ch6-Debugging/CST116-Ch6-Debugging-Williams.txt @@ -0,0 +1,20 @@ +Enter temperature in Fahrenheit: 212 +212 degrees F = 100 degrees C + +-----PSEUDOCODE----- +PROGRAM START +| +V +Define float variables for fahrenheit and celcius +| +V +Get a fahrenheit value from the user +| +V +Convert that value to celcius +| +V +Print the conversion to the console +| +V +PROGRAM END
\ No newline at end of file diff --git a/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp b/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp index 497e2f8..560539a 100644 --- a/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp +++ b/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp @@ -1,3 +1,6 @@ +// Name: Joe Williams
+// Course: CST116
+
/********************************************************************
* File: CST116-Ch6-Debugging.cpp
*
@@ -51,7 +54,7 @@ int main() // Breakpoint 1
// Put a breakpoint on the following line
- celcius = 5 / 9 * fahrenheit - 32;
+ celcius = static_cast<float>(5) / 9 * (fahrenheit - 32);
cout << fahrenheit << " degrees F = "
<< celcius << " degrees C" << endl;
diff --git a/CST116-Ch6-Debugging/CST116-Ch6-Debugging.vcxproj b/CST116-Ch6-Debugging/CST116-Ch6-Debugging.vcxproj index 778451a..deefad3 100644 --- a/CST116-Ch6-Debugging/CST116-Ch6-Debugging.vcxproj +++ b/CST116-Ch6-Debugging/CST116-Ch6-Debugging.vcxproj @@ -24,6 +24,7 @@ <ProjectGuid>{3414da97-83cc-448b-88af-edb4a21573b2}</ProjectGuid>
<RootNamespace>CST116Ch6Debugging</RootNamespace>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
+ <ProjectName>CST116-Ch6-Debugging-Williams</ProjectName>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
@@ -127,6 +128,7 @@ </Link>
</ItemDefinitionGroup>
<ItemGroup>
+ <ClCompile Include="CST116-Ch6-Debugging-Williams.txt" />
<ClCompile Include="CST116-Ch6-Debugging.cpp" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
diff --git a/CST116-Ch6-Debugging/CST116-Ch6-Debugging.vcxproj.filters b/CST116-Ch6-Debugging/CST116-Ch6-Debugging.vcxproj.filters index 187ab51..78ae29f 100644 --- a/CST116-Ch6-Debugging/CST116-Ch6-Debugging.vcxproj.filters +++ b/CST116-Ch6-Debugging/CST116-Ch6-Debugging.vcxproj.filters @@ -18,5 +18,8 @@ <ClCompile Include="CST116-Ch6-Debugging.cpp">
<Filter>Source Files</Filter>
</ClCompile>
+ <ClCompile Include="CST116-Ch6-Debugging-Williams.txt">
+ <Filter>Source Files</Filter>
+ </ClCompile>
</ItemGroup>
</Project>
\ No newline at end of file diff --git a/CST116-Ch6-Debugging/x64/Debug/CST116-C.3414da97.tlog/CL.command.1.tlog b/CST116-Ch6-Debugging/x64/Debug/CST116-C.3414da97.tlog/CL.command.1.tlog Binary files differnew file mode 100644 index 0000000..c82fea6 --- /dev/null +++ b/CST116-Ch6-Debugging/x64/Debug/CST116-C.3414da97.tlog/CL.command.1.tlog diff --git a/CST116-Ch6-Debugging/x64/Debug/CST116-C.3414da97.tlog/CL.read.1.tlog b/CST116-Ch6-Debugging/x64/Debug/CST116-C.3414da97.tlog/CL.read.1.tlog Binary files differnew file mode 100644 index 0000000..8e82924 --- /dev/null +++ b/CST116-Ch6-Debugging/x64/Debug/CST116-C.3414da97.tlog/CL.read.1.tlog diff --git a/CST116-Ch6-Debugging/x64/Debug/CST116-C.3414da97.tlog/CL.write.1.tlog b/CST116-Ch6-Debugging/x64/Debug/CST116-C.3414da97.tlog/CL.write.1.tlog Binary files differnew file mode 100644 index 0000000..288a6d6 --- /dev/null +++ b/CST116-Ch6-Debugging/x64/Debug/CST116-C.3414da97.tlog/CL.write.1.tlog diff --git a/CST116-Ch6-Debugging/x64/Debug/CST116-C.3414da97.tlog/CST116-Ch6-Debugging-Williams.lastbuildstate b/CST116-Ch6-Debugging/x64/Debug/CST116-C.3414da97.tlog/CST116-Ch6-Debugging-Williams.lastbuildstate new file mode 100644 index 0000000..f1a8716 --- /dev/null +++ b/CST116-Ch6-Debugging/x64/Debug/CST116-C.3414da97.tlog/CST116-Ch6-Debugging-Williams.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.33.31629:TargetPlatformVersion=10.0.19041.0: +Debug|x64|C:\Users\hey-t\Source\Repos\cst116-ch6-debugging-AllTheNamesAreTaken3141\CST116-Ch6-Debugging\| diff --git a/CST116-Ch6-Debugging/x64/Debug/CST116-C.3414da97.tlog/CST116-Ch6-Debugging.lastbuildstate b/CST116-Ch6-Debugging/x64/Debug/CST116-C.3414da97.tlog/CST116-Ch6-Debugging.lastbuildstate new file mode 100644 index 0000000..f1a8716 --- /dev/null +++ b/CST116-Ch6-Debugging/x64/Debug/CST116-C.3414da97.tlog/CST116-Ch6-Debugging.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.33.31629:TargetPlatformVersion=10.0.19041.0: +Debug|x64|C:\Users\hey-t\Source\Repos\cst116-ch6-debugging-AllTheNamesAreTaken3141\CST116-Ch6-Debugging\| diff --git a/CST116-Ch6-Debugging/x64/Debug/CST116-C.3414da97.tlog/link.command.1.tlog b/CST116-Ch6-Debugging/x64/Debug/CST116-C.3414da97.tlog/link.command.1.tlog Binary files differnew file mode 100644 index 0000000..f430b9e --- /dev/null +++ b/CST116-Ch6-Debugging/x64/Debug/CST116-C.3414da97.tlog/link.command.1.tlog diff --git a/CST116-Ch6-Debugging/x64/Debug/CST116-C.3414da97.tlog/link.read.1.tlog b/CST116-Ch6-Debugging/x64/Debug/CST116-C.3414da97.tlog/link.read.1.tlog Binary files differnew file mode 100644 index 0000000..1b8d123 --- /dev/null +++ b/CST116-Ch6-Debugging/x64/Debug/CST116-C.3414da97.tlog/link.read.1.tlog diff --git a/CST116-Ch6-Debugging/x64/Debug/CST116-C.3414da97.tlog/link.write.1.tlog b/CST116-Ch6-Debugging/x64/Debug/CST116-C.3414da97.tlog/link.write.1.tlog Binary files differnew file mode 100644 index 0000000..4a9d04d --- /dev/null +++ b/CST116-Ch6-Debugging/x64/Debug/CST116-C.3414da97.tlog/link.write.1.tlog diff --git a/CST116-Ch6-Debugging/x64/Debug/CST116-Ch6-Debugging-Williams.exe b/CST116-Ch6-Debugging/x64/Debug/CST116-Ch6-Debugging-Williams.exe Binary files differnew file mode 100644 index 0000000..9639ceb --- /dev/null +++ b/CST116-Ch6-Debugging/x64/Debug/CST116-Ch6-Debugging-Williams.exe diff --git a/CST116-Ch6-Debugging/x64/Debug/CST116-Ch6-Debugging-Williams.exe.recipe b/CST116-Ch6-Debugging/x64/Debug/CST116-Ch6-Debugging-Williams.exe.recipe new file mode 100644 index 0000000..df1a6b8 --- /dev/null +++ b/CST116-Ch6-Debugging/x64/Debug/CST116-Ch6-Debugging-Williams.exe.recipe @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project> + <ProjectOutputs> + <ProjectOutput> + <FullPath>C:\Users\hey-t\Source\Repos\cst116-ch6-debugging-AllTheNamesAreTaken3141\CST116-Ch6-Debugging\x64\Debug\CST116-Ch6-Debugging-Williams.exe</FullPath> + </ProjectOutput> + </ProjectOutputs> + <ContentFiles /> + <SatelliteDlls /> + <NonRecipeFileRefs /> +</Project>
\ No newline at end of file diff --git a/CST116-Ch6-Debugging/x64/Debug/CST116-Ch6-Debugging-Williams.ilk b/CST116-Ch6-Debugging/x64/Debug/CST116-Ch6-Debugging-Williams.ilk Binary files differnew file mode 100644 index 0000000..841bc00 --- /dev/null +++ b/CST116-Ch6-Debugging/x64/Debug/CST116-Ch6-Debugging-Williams.ilk diff --git a/CST116-Ch6-Debugging/x64/Debug/CST116-Ch6-Debugging-Williams.obj b/CST116-Ch6-Debugging/x64/Debug/CST116-Ch6-Debugging-Williams.obj Binary files differnew file mode 100644 index 0000000..0415529 --- /dev/null +++ b/CST116-Ch6-Debugging/x64/Debug/CST116-Ch6-Debugging-Williams.obj diff --git a/CST116-Ch6-Debugging/x64/Debug/CST116-Ch6-Debugging-Williams.pdb b/CST116-Ch6-Debugging/x64/Debug/CST116-Ch6-Debugging-Williams.pdb Binary files differnew file mode 100644 index 0000000..55c661b --- /dev/null +++ b/CST116-Ch6-Debugging/x64/Debug/CST116-Ch6-Debugging-Williams.pdb diff --git a/CST116-Ch6-Debugging/x64/Debug/CST116-Ch6-Debugging.exe.recipe b/CST116-Ch6-Debugging/x64/Debug/CST116-Ch6-Debugging.exe.recipe new file mode 100644 index 0000000..1468ac1 --- /dev/null +++ b/CST116-Ch6-Debugging/x64/Debug/CST116-Ch6-Debugging.exe.recipe @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project> + <ProjectOutputs> + <ProjectOutput> + <FullPath>C:\Users\hey-t\Source\Repos\cst116-ch6-debugging-AllTheNamesAreTaken3141\CST116-Ch6-Debugging\x64\Debug\CST116-Ch6-Debugging.exe</FullPath> + </ProjectOutput> + </ProjectOutputs> + <ContentFiles /> + <SatelliteDlls /> + <NonRecipeFileRefs /> +</Project>
\ No newline at end of file diff --git a/CST116-Ch6-Debugging/x64/Debug/CST116-Ch6-Debugging.ilk b/CST116-Ch6-Debugging/x64/Debug/CST116-Ch6-Debugging.ilk Binary files differnew file mode 100644 index 0000000..6b4a69c --- /dev/null +++ b/CST116-Ch6-Debugging/x64/Debug/CST116-Ch6-Debugging.ilk diff --git a/CST116-Ch6-Debugging/x64/Debug/CST116-Ch6-Debugging.log b/CST116-Ch6-Debugging/x64/Debug/CST116-Ch6-Debugging.log new file mode 100644 index 0000000..7036471 --- /dev/null +++ b/CST116-Ch6-Debugging/x64/Debug/CST116-Ch6-Debugging.log @@ -0,0 +1,3 @@ +C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(534,5): warning MSB8028: The intermediate directory (x64\Debug\) contains files shared from another project (CST116-Ch6-Debugging.vcxproj). This can lead to incorrect clean and rebuild behavior. + CST116-Ch6-Debugging.cpp + CST116-Ch6-Debugging.vcxproj -> C:\Users\hey-t\Source\Repos\cst116-ch6-debugging-AllTheNamesAreTaken3141\CST116-Ch6-Debugging\x64\Debug\CST116-Ch6-Debugging-Williams.exe diff --git a/CST116-Ch6-Debugging/x64/Debug/CST116-Ch6-Debugging.obj b/CST116-Ch6-Debugging/x64/Debug/CST116-Ch6-Debugging.obj Binary files differnew file mode 100644 index 0000000..8d7af27 --- /dev/null +++ b/CST116-Ch6-Debugging/x64/Debug/CST116-Ch6-Debugging.obj diff --git a/CST116-Ch6-Debugging/x64/Debug/CST116-Ch6-Debugging.pdb b/CST116-Ch6-Debugging/x64/Debug/CST116-Ch6-Debugging.pdb Binary files differnew file mode 100644 index 0000000..72d4868 --- /dev/null +++ b/CST116-Ch6-Debugging/x64/Debug/CST116-Ch6-Debugging.pdb diff --git a/CST116-Ch6-Debugging/x64/Debug/CST116-Ch6-Debugging.vcxproj.FileListAbsolute.txt b/CST116-Ch6-Debugging/x64/Debug/CST116-Ch6-Debugging.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..974c885 --- /dev/null +++ b/CST116-Ch6-Debugging/x64/Debug/CST116-Ch6-Debugging.vcxproj.FileListAbsolute.txt @@ -0,0 +1 @@ +C:\Users\hey-t\Source\Repos\cst116-ch6-debugging-AllTheNamesAreTaken3141\CST116-Ch6-Debugging\x64\Debug\CST116-Ch6-Debugging-Williams.exe diff --git a/CST116-Ch6-Debugging/x64/Debug/vc143.idb b/CST116-Ch6-Debugging/x64/Debug/vc143.idb Binary files differnew file mode 100644 index 0000000..1430957 --- /dev/null +++ b/CST116-Ch6-Debugging/x64/Debug/vc143.idb diff --git a/CST116-Ch6-Debugging/x64/Debug/vc143.pdb b/CST116-Ch6-Debugging/x64/Debug/vc143.pdb Binary files differnew file mode 100644 index 0000000..6db0eaa --- /dev/null +++ b/CST116-Ch6-Debugging/x64/Debug/vc143.pdb |