summaryrefslogtreecommitdiff
path: root/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp')
-rw-r--r--CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp
index 53830da..0e8fe34 100644
--- a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp
+++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp
@@ -1,4 +1,9 @@
/********************************************************************
+ * Andrei Florea - CST 116 - Chapter 11 - Using input and output to work with files
+ *
+ * I went over the Chapter 11 presentation, but I could not find any questions to answer.
+ *
+ *
* File: Chapter 11 Debug.cpp
*
* General Instructions: Complete each step before proceeding to the
@@ -62,6 +67,8 @@ using std::setw;
using std::ios;
using std::ifstream;
+using std::setiosflags;
+using std::resetiosflags;
using std::ofstream;
const int EMPLOYEES = 20;
@@ -81,9 +88,9 @@ int main()
ifstream inFile;
// Notice how this automatically opens the file
- ofstream outFile("C:\\TEMP\\Chap_11_Report.txt");
+ ofstream outFile("../Chap_11_Report.txt");
- inFile.open("C:\\TEMP\\Chap_11_data.txt");
+ inFile.open("../Chap_11_data.txt");
if (inFile.is_open())
{