diff options
Diffstat (limited to 'CST116-Ch11-Debugging')
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 |