diff options
| author | JonCr <[email protected]> | 2022-12-03 23:55:59 -0800 |
|---|---|---|
| committer | JonCr <[email protected]> | 2022-12-03 23:55:59 -0800 |
| commit | 38d0d70d1a5541e83c7b8c2add993e764b885701 (patch) | |
| tree | d8474b45cffbe22556777916143741e85e4bb9fa | |
| parent | Initial commit (diff) | |
| download | cst116-ch11-debugging-cognitiveshadow-master.tar.xz cst116-ch11-debugging-cognitiveshadow-master.zip | |
| -rw-r--r-- | CST116-Ch11-Crombie-data.txt | 9 | ||||
| -rw-r--r-- | CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp | 5 |
2 files changed, 12 insertions, 2 deletions
diff --git a/CST116-Ch11-Crombie-data.txt b/CST116-Ch11-Crombie-data.txt new file mode 100644 index 0000000..17cbbb9 --- /dev/null +++ b/CST116-Ch11-Crombie-data.txt @@ -0,0 +1,9 @@ +Troy 12 +Kevin 35 +May 19 +Leo 44 +Lisa 37 +Michael 26 +Brian 51 +Donna 42 +Irene 76
\ 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..1ac97e6 100644 --- a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp +++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp @@ -83,6 +83,7 @@ int main() // Notice how this automatically opens the file ofstream outFile("C:\\TEMP\\Chap_11_Report.txt"); + //inFile.open("C:\\TEMP\\CST116-Ch11-Crombie-data.txt"); inFile.open("C:\\TEMP\\Chap_11_data.txt"); if (inFile.is_open()) @@ -98,13 +99,13 @@ int main() } else { - cout << "Trouble Opening File"; + cout << "Trouble Opening File: Chap_11_Report.txt"; cout << "\n\n\t\t ** About to EXIT NOW! ** "; } } else { - cout << "Trouble Opening File"; + cout << "Trouble Opening File: CST116-Ch11-Crombie-data.txt"; cout << "\n\n\t\t ** About to EXIT NOW! ** "; } return 0; |