summaryrefslogtreecommitdiff
path: root/CST116-Ch11-Debugging
diff options
context:
space:
mode:
author[email protected] <[email protected]>2022-11-09 16:27:44 -0800
committer[email protected] <[email protected]>2022-11-09 16:27:44 -0800
commitb245e24ebed4873f615ff91259f0959edfc21b9b (patch)
tree2c6e74c34a221815743d35707dbb0b3119c1d562 /CST116-Ch11-Debugging
parentInitial commit (diff)
downloadcst116-ch11-debugging-smith-benjamin-b245e24ebed4873f615ff91259f0959edfc21b9b.tar.xz
cst116-ch11-debugging-smith-benjamin-b245e24ebed4873f615ff91259f0959edfc21b9b.zip
Tis a PushHEADmaster
Diffstat (limited to 'CST116-Ch11-Debugging')
-rw-r--r--CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp6
-rw-r--r--CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj4
-rw-r--r--CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj.filters8
-rw-r--r--CST116-Ch11-Debugging/HomeworkText FilesInput_names_and_ages.txt6
-rw-r--r--CST116-Ch11-Debugging/HomeworkText FilesOutput_names_and_ages.txt0
5 files changed, 21 insertions, 3 deletions
diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp
index 53830da..8f833a7 100644
--- a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp
+++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp
@@ -6,7 +6,7 @@
*
* Debugging Exercise 1
*
-* 1) Make your own data file like Troy 12, with the next person on the
+* 1) Make your own data file like Troy 12, with the next person on then
* next line and save it to a directory you create on your drive.
* 2) Under the Project menu, select Add Existing Item and
* add the input file you just placed on your drive to your
@@ -81,9 +81,9 @@ int main()
ifstream inFile;
// Notice how this automatically opens the file
- ofstream outFile("C:\\TEMP\\Chap_11_Report.txt");
+ ofstream outFile("C:\\Homework\\Text Files\\Output_names_and_ages.txt");
- inFile.open("C:\\TEMP\\Chap_11_data.txt");
+ inFile.open("C:\\Homework\\Text Files\\Input_names_and_ages.txt");
if (inFile.is_open())
{
diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj
index 2073e5b..2288f30 100644
--- a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj
+++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj
@@ -129,6 +129,10 @@
<ItemGroup>
<ClCompile Include="CST116-Ch11-Debugging.cpp" />
</ItemGroup>
+ <ItemGroup>
+ <Text Include="..\..\..\..\..\..\..\..\Homework\Text Files\Input_names_and_ages.txt" />
+ <Text Include="..\..\..\..\..\..\..\..\Homework\Text Files\Output_names_and_ages.txt" />
+ </ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj.filters b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj.filters
index 2029dc7..3133bf4 100644
--- a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj.filters
+++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj.filters
@@ -19,4 +19,12 @@
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
+ <ItemGroup>
+ <Text Include="..\..\..\..\..\..\..\..\Homework\Text Files\Input_names_and_ages.txt">
+ <Filter>Source Files</Filter>
+ </Text>
+ <Text Include="..\..\..\..\..\..\..\..\Homework\Text Files\Output_names_and_ages.txt">
+ <Filter>Source Files</Filter>
+ </Text>
+ </ItemGroup>
</Project> \ No newline at end of file
diff --git a/CST116-Ch11-Debugging/HomeworkText FilesInput_names_and_ages.txt b/CST116-Ch11-Debugging/HomeworkText FilesInput_names_and_ages.txt
new file mode 100644
index 0000000..648d28a
--- /dev/null
+++ b/CST116-Ch11-Debugging/HomeworkText FilesInput_names_and_ages.txt
@@ -0,0 +1,6 @@
+ Here is the Output File
+ -858993460
+
+
+ ** Total Records: 0 **
+ The End
diff --git a/CST116-Ch11-Debugging/HomeworkText FilesOutput_names_and_ages.txt b/CST116-Ch11-Debugging/HomeworkText FilesOutput_names_and_ages.txt
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/CST116-Ch11-Debugging/HomeworkText FilesOutput_names_and_ages.txt