From 0cdb0af7491272cbe0de5243dfea50584628520a Mon Sep 17 00:00:00 2001 From: Anibal LopezBonilla Date: Wed, 30 Nov 2022 21:25:40 -0800 Subject: Push 4 --- BlankConsoleLab/BlankConsoleLab.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'BlankConsoleLab/BlankConsoleLab.cpp') diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp index 3f3260d..275786c 100644 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ b/BlankConsoleLab/BlankConsoleLab.cpp @@ -33,6 +33,7 @@ int main() { record_counter = ReadData(inFile, pick, drop, psgr, dist, fare, toll); + inFile.close(); if (outFile.is_open()) { @@ -119,11 +120,10 @@ void WriteOutputFile(ofstream& outFile, int pick[], int drop[], int void PrintTotalsAndSummary(ofstream& outFile, int pick[], int drop[], int psgr[], float dist[], float fare[], float toll[] , float TF[]) { - // To screen cout << "Total People Transported: " << endl - << "Total Paid: " << endl //TFare = fare + toll + << "Total Paid: " << TF[] << endl //TFare = fare + toll << "Average Cost Per Person " << endl; //Cost Per Mile = Fare / Distance // To file outFile << "\n\n\t** Total People Transported: " << endl -- cgit v1.2.3