summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdwardFine <[email protected]>2022-11-02 23:02:31 -0700
committerEdwardFine <[email protected]>2022-11-02 23:02:31 -0700
commit1e77838e79e0df906d97ed6d2a97fe04625c3bed (patch)
treef5e7ac64ee0de87bf3f7052b219cd1c17a3a8be9
parentInitial commit (diff)
downloadcst116-ch11-debugging-edwardfine-1e77838e79e0df906d97ed6d2a97fe04625c3bed.tar.xz
cst116-ch11-debugging-edwardfine-1e77838e79e0df906d97ed6d2a97fe04625c3bed.zip
Finished Debug
-rw-r--r--CST116-Ch11-Debugging/CST116-Ch11-Debugging-Edward-Fine.cpp (renamed from CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp)8
-rw-r--r--CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj7
-rw-r--r--CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj.filters7
-rw-r--r--Chap_11_Report.txt17
4 files changed, 33 insertions, 6 deletions
diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp b/CST116-Ch11-Debugging/CST116-Ch11-Debugging-Edward-Fine.cpp
index 53830da..47ad744 100644
--- a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp
+++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging-Edward-Fine.cpp
@@ -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:\\Users\\edfin\\source\\repos\\cst116-ch11-debugging-EdwardFine\\Chap_11_Report.txt");
- inFile.open("C:\\TEMP\\Chap_11_data.txt");
+ inFile.open("C:\\Users\\edfin\\source\\repos\\cst116-ch11-debugging-EdwardFine\\Chap_11_data.txt");
if (inFile.is_open())
{
@@ -98,13 +98,13 @@ int main()
}
else
{
- cout << "Trouble Opening File";
+ cout << "Trouble Opening Output File";
cout << "\n\n\t\t ** About to EXIT NOW! ** ";
}
}
else
{
- cout << "Trouble Opening File";
+ cout << "Trouble Opening Input File";
cout << "\n\n\t\t ** About to EXIT NOW! ** ";
}
return 0;
diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj
index 2073e5b..7f0a540 100644
--- a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj
+++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj
@@ -127,7 +127,12 @@
</Link>
</ItemDefinitionGroup>
<ItemGroup>
- <ClCompile Include="CST116-Ch11-Debugging.cpp" />
+ <ClCompile Include="CST116-Ch11-Debugging-Edward-Fine.cpp" />
+ </ItemGroup>
+ <ItemGroup>
+ <Text Include="..\..\..\..\Desktop\Chap_11_Report.txt" />
+ <Text Include="..\Chap_11_data.txt" />
+ <Text Include="..\Chap_11_Report.txt" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj.filters b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj.filters
index 2029dc7..a3702a5 100644
--- a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj.filters
+++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj.filters
@@ -15,8 +15,13 @@
</Filter>
</ItemGroup>
<ItemGroup>
- <ClCompile Include="CST116-Ch11-Debugging.cpp">
+ <ClCompile Include="CST116-Ch11-Debugging-Edward-Fine.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
+ <ItemGroup>
+ <Text Include="..\Chap_11_data.txt" />
+ <Text Include="..\..\..\..\Desktop\Chap_11_Report.txt" />
+ <Text Include="..\Chap_11_Report.txt" />
+ </ItemGroup>
</Project> \ No newline at end of file
diff --git a/Chap_11_Report.txt b/Chap_11_Report.txt
new file mode 100644
index 0000000..7ea2a9b
--- /dev/null
+++ b/Chap_11_Report.txt
@@ -0,0 +1,17 @@
+ Here is the Output File
+John 19
+Molly 23
+Tim 48
+Keil 42
+Trinh 21
+Anthony 25
+Kevin 27
+Cheryl 32
+Kim 16
+Dave 25
+Will 34
+ -858993460
+
+
+ ** Total Records: 11 **
+ The End