diff options
| author | Joe Traver <[email protected]> | 2022-11-26 20:39:18 -0800 |
|---|---|---|
| committer | Joe Traver <[email protected]> | 2022-11-26 20:39:18 -0800 |
| commit | f126a83bdbd814ea7dfe8f27adca5f171e391567 (patch) | |
| tree | 42d86e521a378707fc24f2861b4436bac6454e7f | |
| parent | WriteData function (diff) | |
| download | cst116-lab3-joetraver30-f126a83bdbd814ea7dfe8f27adca5f171e391567.tar.xz cst116-lab3-joetraver30-f126a83bdbd814ea7dfe8f27adca5f171e391567.zip | |
Print data function
| -rw-r--r-- | BlankConsoleLab/BlankConsoleLab.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
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"; +} |