diff options
| author | alexandra-apetroaei <andra@MSI> | 2022-11-01 19:34:29 -0800 |
|---|---|---|
| committer | alexandra-apetroaei <andra@MSI> | 2022-11-01 19:34:29 -0800 |
| commit | b5cc598f4f8cecfcfb596d8c1369ab8a7f560fc2 (patch) | |
| tree | 9d8874db0f9c921d371b13848965891e7d083067 | |
| parent | Initial commit (diff) | |
| download | cst116-ch11-debugging-alexandra-apetroaei-b5cc598f4f8cecfcfb596d8c1369ab8a7f560fc2.tar.xz cst116-ch11-debugging-alexandra-apetroaei-b5cc598f4f8cecfcfb596d8c1369ab8a7f560fc2.zip | |
change
| -rw-r--r-- | CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp | 4 | ||||
| -rw-r--r-- | CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj | 4 | ||||
| -rw-r--r-- | CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj.filters | 4 | ||||
| -rw-r--r-- | TEMP/Chap_11_Report.txt | 11 | ||||
| -rw-r--r-- | TEMP/Chap_11_data.txt (renamed from Chap_11_data.txt) | 22 |
5 files changed, 32 insertions, 13 deletions
diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp index 53830da..a0295db 100644 --- a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp +++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp @@ -78,10 +78,10 @@ int main() int age[EMPLOYEES]; int record_counter(0); - ifstream inFile; + ifstream inFile("C:\\TEMP\\Chap_11_Report.txt"); // Notice how this automatically opens the file - ofstream outFile("C:\\TEMP\\Chap_11_Report.txt"); + ofstream outFile; inFile.open("C:\\TEMP\\Chap_11_data.txt"); diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj index 2073e5b..05b57a1 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="..\TEMP\Chap_11_Report.txt" /> + <Text Include="TEMP\Chap_11_data.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..d1bbc46 100644 --- a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj.filters +++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj.filters @@ -19,4 +19,8 @@ <Filter>Source Files</Filter> </ClCompile> </ItemGroup> + <ItemGroup> + <Text Include="TEMP\Chap_11_data.txt" /> + <Text Include="..\TEMP\Chap_11_Report.txt" /> + </ItemGroup> </Project>
\ No newline at end of file diff --git a/TEMP/Chap_11_Report.txt b/TEMP/Chap_11_Report.txt new file mode 100644 index 0000000..5f0b188 --- /dev/null +++ b/TEMP/Chap_11_Report.txt @@ -0,0 +1,11 @@ +John 19 +Molly 23 +Tim 48 +Keil 42 +Trinh 21 +Anthony 25 +Kevin 27 +Cheryl 32 +Kim 16 +Dave 25 +Will 34
\ No newline at end of file diff --git a/Chap_11_data.txt b/TEMP/Chap_11_data.txt index e4083f4..5f0b188 100644 --- a/Chap_11_data.txt +++ b/TEMP/Chap_11_data.txt @@ -1,11 +1,11 @@ -John 19
-Molly 23
-Tim 48
-Keil 42
-Trinh 21
-Anthony 25
-Kevin 27
-Cheryl 32
-Kim 16
-Dave 25
-Will 34
+John 19 +Molly 23 +Tim 48 +Keil 42 +Trinh 21 +Anthony 25 +Kevin 27 +Cheryl 32 +Kim 16 +Dave 25 +Will 34
\ No newline at end of file |