diff options
| author | Wyatt <[email protected]> | 2022-11-08 19:39:53 -0800 |
|---|---|---|
| committer | Wyatt <[email protected]> | 2022-11-08 19:39:53 -0800 |
| commit | 2e7082ea7f537a4386c9602e7cf4e6f0513a7d6f (patch) | |
| tree | 3d735ecdc0cdc2a577ba052b1d73871cf337ac3b | |
| parent | changes the paths (diff) | |
| download | cst116-ch11-debugging-johnson-2e7082ea7f537a4386c9602e7cf4e6f0513a7d6f.tar.xz cst116-ch11-debugging-johnson-2e7082ea7f537a4386c9602e7cf4e6f0513a7d6f.zip | |
done
| -rw-r--r-- | CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp | 6 | ||||
| -rw-r--r-- | Chapter_11_data_2.txt | 4 | ||||
| -rw-r--r-- | output.txt | 14 |
3 files changed, 20 insertions, 4 deletions
diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp index 6c9df83..aa8d436 100644 --- a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp +++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp @@ -81,7 +81,7 @@ int main() ifstream inFile; // Notice how this automatically opens the file - ofstream outFile("C:\\Users\\wythe\\source\\repos\\cst116-ch11-debugging-johnson\\Chapter_11_data_2.txt"); + ofstream outFile("C:\\Users\\wythe\\source\\repos\\cst116-ch11-debugging-johnson\\output.txt"); inFile.open("C:\\Users\\wythe\\source\\repos\\cst116-ch11-debugging-johnson\\Chapter_11_data_2.txt"); @@ -98,13 +98,13 @@ int main() } else { - cout << "Trouble Opening File"; + cout << "Trouble Opening File, Out File."; cout << "\n\n\t\t ** About to EXIT NOW! ** "; } } else { - cout << "Trouble Opening File"; + cout << "Trouble Opening File, Input File."; cout << "\n\n\t\t ** About to EXIT NOW! ** "; } return 0; diff --git a/Chapter_11_data_2.txt b/Chapter_11_data_2.txt index aa68093..4a29ac8 100644 --- a/Chapter_11_data_2.txt +++ b/Chapter_11_data_2.txt @@ -3,4 +3,6 @@ Thomas 21 Jimboy 9 Allen 26 JOE 42 -Allen_2 24 +Allens 24 +jlkajklfda 2 +adsfa 1 diff --git a/output.txt b/output.txt new file mode 100644 index 0000000..dc73c0b --- /dev/null +++ b/output.txt @@ -0,0 +1,14 @@ + Here is the Output File +Wyatt 19 +Thomas 21 +Jimboy 9 +Allen 26 +JOE 42 +Allens 24 +jlkajklfda 2 +adsfa 1 + -858993460 + + + ** Total Records: 8 ** + The End |