From 6b8b95fb63b9274d4bd32d16621df7a082b7c6f8 Mon Sep 17 00:00:00 2001 From: Joe Traver Date: Sat, 26 Nov 2022 20:33:24 -0800 Subject: Baseline streams and function definition --- BlankConsoleLab/BlankConsoleLab.cpp | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp index ed5f807..0b7c133 100644 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ b/BlankConsoleLab/BlankConsoleLab.cpp @@ -1,16 +1,28 @@ -// BlankConsoleLab.cpp : This file contains the 'main' function. Program execution begins and ends there. -// +//Lab 3 -#include -using namespace std; -using std::cout; +#include +#include // For the files!!!! +#include // For manipulators & formatting options using std::cin; +using std::cout; using std::endl; +using std::setw; +using std::ios; + +using std::ifstream; +using std::ofstream; + + +const int MAX = 100; + +int ReadData(ifstream& inFile, int pick[], int drop[], int psgr[], float dist[], float fare[], float toll[], float tfare[]); +void WriteOutputFile(ofstream& outFile, int pick[], int drop[], int psgr[], float dist[], float fare[], float toll[], + int counter); +void PrintTotalsAndSummary(ofstream& out, int totalRecords); int main() { - cout << "Hello World!\n"; -} +} -- cgit v1.2.3