diff options
| author | prestonderek <[email protected]> | 2022-11-01 19:27:58 -0700 |
|---|---|---|
| committer | prestonderek <[email protected]> | 2022-11-01 19:27:58 -0700 |
| commit | d6d85baea968a4b44ee5a51b84b7e46474cbc599 (patch) | |
| tree | 99020711acbce177cb690cbc66856d0971e9307b | |
| parent | Added my output file and ran program. It told me trouble opening file. This w... (diff) | |
| download | cst116-ch11-debugging-prestonderek-d6d85baea968a4b44ee5a51b84b7e46474cbc599.tar.xz cst116-ch11-debugging-prestonderek-d6d85baea968a4b44ee5a51b84b7e46474cbc599.zip | |
commit for report log
| -rw-r--r-- | CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp | 6 | ||||
| -rw-r--r-- | CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj | 1 | ||||
| -rw-r--r-- | CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj.filters | 1 | ||||
| -rw-r--r-- | Chap_11_Report_Preston.txt | 17 | ||||
| -rw-r--r-- | Debug11File1.txt | 12 |
5 files changed, 35 insertions, 2 deletions
diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp index 53830da..3502ab1 100644 --- a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp +++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp @@ -81,9 +81,11 @@ int main() ifstream inFile; // Notice how this automatically opens the file - ofstream outFile("C:\\TEMP\\Chap_11_Report.txt"); + // ofstream outFile("C:\\TEMP\\Chap_11_Report.txt"); - inFile.open("C:\\TEMP\\Chap_11_data.txt"); + //inFile.open("C:\\TEMP\\Chap_11_data.txt"); + ofstream outFile("C:\\temp\\Chap_11_Report.txt"); + inFile.open("C:\Users\prest\source\repos\cst116-ch11-debugging-prestonderek\Debug11File1.txt"); if (inFile.is_open()) { diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj index 5f0b4c6..19b6f1b 100644 --- a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj +++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj @@ -130,6 +130,7 @@ <ClCompile Include="CST116-Ch11-Debugging.cpp" /> </ItemGroup> <ItemGroup> + <Text Include="..\..\..\..\..\..\temp\Chap_11_Report.txt" /> <Text Include="D:\Important\School\CST116\Debug11File1.txt" /> </ItemGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj.filters b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj.filters index 61f7a0c..0fe3e2d 100644 --- a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj.filters +++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj.filters @@ -21,5 +21,6 @@ </ItemGroup> <ItemGroup> <Text Include="D:\Important\School\CST116\Debug11File1.txt" /> + <Text Include="..\..\..\..\..\..\temp\Chap_11_Report.txt" /> </ItemGroup> </Project>
\ No newline at end of file diff --git a/Chap_11_Report_Preston.txt b/Chap_11_Report_Preston.txt new file mode 100644 index 0000000..cbd9f35 --- /dev/null +++ b/Chap_11_Report_Preston.txt @@ -0,0 +1,17 @@ + Here is the Output File +Tony 12 +John 1 +Sara 3 +Derek 2 +Norah 5 +Mylah 7 +Hannah 10 +Bob 4 +Dylan 9 +Wixy 6 +Filter 11 +Abby 8 + + + ** Total Records: 11 ** + The End diff --git a/Debug11File1.txt b/Debug11File1.txt new file mode 100644 index 0000000..7bcc9e5 --- /dev/null +++ b/Debug11File1.txt @@ -0,0 +1,12 @@ +Tony 12 +John 1 +Sara 3 +Derek 2 +Norah 5 +Mylah 7 +Hannah 10 +Bob 4 +Dylan 9 +Wixy 6 +Filter 11 +Abby 8
\ No newline at end of file |