summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan <[email protected]>2022-11-02 15:35:53 -0700
committerEvan <[email protected]>2022-11-02 15:35:53 -0700
commitc535f5ced42adbf9b34860628df776fa9904e18f (patch)
tree540b247d3b4719da0fe4f0130d565ab671d1c2fd
parentf (diff)
downloadcst116-ch11-debugging-evanmihm-c535f5ced42adbf9b34860628df776fa9904e18f.tar.xz
cst116-ch11-debugging-evanmihm-c535f5ced42adbf9b34860628df776fa9904e18f.zip
input/outputfiles / done
-rw-r--r--CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp8
-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/UsersiceagsourceTestO.txt0
4 files changed, 15 insertions, 5 deletions
diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp
index 4ecd4d1..98c776a 100644
--- a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp
+++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp
@@ -8,13 +8,11 @@
*
* 1) Make your own data file like Troy 12, with the next person on the
* 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
* current project. Make sure your Solution Explorer window
* is visible. If not, you can display it by selecting Solution
-* Explorer (or Ctrl+Alt+L).
-*
+* Explorer (or Ctrl+Alt+L)
* 3) Open the input file by simply double clicking the name of the
* file in your Solution Explorer.
* 4) Build and execute the program.
@@ -83,11 +81,11 @@ int main()
ifstream Input;
// Notice how this automatically opens the file
- ofstream Output("C:\\TEMP\\Chap_11_Report.txt");
+ ofstream Output("C:\\Users\\iceag\\source\\TestO.txt");
//C:\\Users\\iceag\\source\\CHPT11I.txt
- Input.open("C:\\TEMP\\Chap_11_data.txt");
+ Input.open("C:\\Users\\iceag\\source\\TestI.txt");
if (Input.is_open())
{
diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj
index 2073e5b..0c8e01f 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="..\..\..\TestI.txt" />
+ <Text Include="..\..\..\TestO.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..d718823 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="..\..\..\TestI.txt">
+ <Filter>Source Files</Filter>
+ </Text>
+ <Text Include="..\..\..\TestO.txt">
+ <Filter>Source Files</Filter>
+ </Text>
+ </ItemGroup>
</Project> \ No newline at end of file
diff --git a/CST116-Ch11-Debugging/UsersiceagsourceTestO.txt b/CST116-Ch11-Debugging/UsersiceagsourceTestO.txt
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/CST116-Ch11-Debugging/UsersiceagsourceTestO.txt