From c535f5ced42adbf9b34860628df776fa9904e18f Mon Sep 17 00:00:00 2001 From: Evan Date: Wed, 2 Nov 2022 15:35:53 -0700 Subject: input/outputfiles / done --- CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp | 8 +++----- CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj | 4 ++++ CST116-Ch11-Debugging/CST116-Ch11-Debugging.vcxproj.filters | 8 ++++++++ CST116-Ch11-Debugging/UsersiceagsourceTestO.txt | 0 4 files changed, 15 insertions(+), 5 deletions(-) create mode 100644 CST116-Ch11-Debugging/UsersiceagsourceTestO.txt 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 @@ + + + + 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 @@ Source Files + + + Source Files + + + Source Files + + \ 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 -- cgit v1.2.3