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 /CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp | |
| parent | Initial commit (diff) | |
| download | cst116-ch11-debugging-alexandra-apetroaei-b5cc598f4f8cecfcfb596d8c1369ab8a7f560fc2.tar.xz cst116-ch11-debugging-alexandra-apetroaei-b5cc598f4f8cecfcfb596d8c1369ab8a7f560fc2.zip | |
change
Diffstat (limited to 'CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp')
| -rw-r--r-- | CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp | 4 |
1 files changed, 2 insertions, 2 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"); |