From b40360f20b38172b69c44ba3bc1778e4f9d0e62f Mon Sep 17 00:00:00 2001 From: CEOofOogaBooga Date: Tue, 8 Nov 2022 19:49:05 -0800 Subject: CH11 FInished (I had problems) --- CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp') diff --git a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp index 2af8ee0..3cb80a3 100644 --- a/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp +++ b/CST116-Ch11-Debugging/CST116-Ch11-Debugging.cpp @@ -83,11 +83,11 @@ int main() int record_counter(0); ifstream inFile; - + // My computer refuses to output/run properly // Notice how this automatically opens the file - ofstream outFile("C:\\TEMP\\Chap_11_Report.txt"); - - inFile.open("C:\\Users\\furyf\\OneDrive\\Desktop\\Homework\\CST Homework\\CST116 Ch11\\CH11 text file.txt"); + ofstream outFile("C:\\Users\\furyf\\OneDrive\\Desktop\\Homework\\CST_Homework\\CST116_Ch11\\Output.txt"); + + inFile.open("C:\\Users\\furyf\\OneDrive\\Desktop\\Homework\\CST_Homework\\CST116_Ch11\\CH11_text_file.txt"); if (inFile.is_open()) { @@ -102,13 +102,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, in file"; cout << "\n\n\t\t ** About to EXIT NOW! ** "; } return 0; -- cgit v1.2.3