From f126a83bdbd814ea7dfe8f27adca5f171e391567 Mon Sep 17 00:00:00 2001 From: Joe Traver Date: Sat, 26 Nov 2022 20:39:18 -0800 Subject: Print data function --- BlankConsoleLab/BlankConsoleLab.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp index b92e7d5..c5a2a56 100644 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ b/BlankConsoleLab/BlankConsoleLab.cpp @@ -68,3 +68,14 @@ void WriteOutputFile(ofstream& outFile, int pick[], int drop[], int psgr[], floa << endl; } } + +void PrintTotalsAndSummary(ofstream& outFile, int totalRecords) +{ + // To screen + cout << "\n\n\t** Total Records: " << totalRecords << " **\n" + << "\t\t The End \n"; + + // To file + outFile << "\n\n\t** Total Records: " << totalRecords << " **\n" + << "\t\t The End \n"; +} -- cgit v1.2.3