diff options
| author | CEOofOogaBooga <[email protected]> | 2022-11-08 19:00:33 -0800 |
|---|---|---|
| committer | CEOofOogaBooga <[email protected]> | 2022-11-08 19:00:33 -0800 |
| commit | 6b5d3554131a3207a9997caa208b4a0788b802e0 (patch) | |
| tree | d0f7e96ea66edd535e01d857623660feceb4311e | |
| parent | Initial commit (diff) | |
| download | cst116-ch11-debugging--trinh--6b5d3554131a3207a9997caa208b4a0788b802e0.tar.xz cst116-ch11-debugging--trinh--6b5d3554131a3207a9997caa208b4a0788b802e0.zip | |
Start
| -rw-r--r-- | CH11 text file.txt | 4 | ||||
| -rw-r--r-- | CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp | 9 |
2 files changed, 11 insertions, 2 deletions
diff --git a/CH11 text file.txt b/CH11 text file.txt new file mode 100644 index 0000000..d7df266 --- /dev/null +++ b/CH11 text file.txt @@ -0,0 +1,4 @@ +Thomas 21 +Wyatt 13 +Ben 50 +Matthew 42
\ No newline at end of file diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp index 53830da..afecc34 100644 --- a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp +++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp @@ -1,6 +1,10 @@ /******************************************************************** * File: Chapter 11 Debug.cpp * +* Thomas Trinh +* CST116 +* Ch11 Arrays and Simple Strings +* * General Instructions: Complete each step before proceeding to the * next. * @@ -80,10 +84,11 @@ int main() ifstream inFile; + // Notice how this automatically opens the file - ofstream outFile("C:\\TEMP\\Chap_11_Report.txt"); + ofstream outFile("C:\\Users\\furyf\\OneDrive\\Desktop\\Homework\\CST Homework\\CST116 Ch11\\CH11 text file.txt"); - inFile.open("C:\\TEMP\\Chap_11_data.txt"); + inFile.open("C:\\Users\\furyf\\OneDrive\\Desktop\\Homework\\CST Homework\\CST116 Ch11\\CH11 text file.txt"); if (inFile.is_open()) { |