diff options
| author | Joe Traver <[email protected]> | 2022-11-26 20:33:24 -0800 |
|---|---|---|
| committer | Joe Traver <[email protected]> | 2022-11-26 20:33:24 -0800 |
| commit | 6b8b95fb63b9274d4bd32d16621df7a082b7c6f8 (patch) | |
| tree | cc609af49bfb6c2509ec6384e092f36cce699bf5 | |
| parent | Basic Pseudocode (diff) | |
| download | cst116-lab3-joetraver30-6b8b95fb63b9274d4bd32d16621df7a082b7c6f8.tar.xz cst116-lab3-joetraver30-6b8b95fb63b9274d4bd32d16621df7a082b7c6f8.zip | |
Baseline streams and function definition
| -rw-r--r-- | BlankConsoleLab/BlankConsoleLab.cpp | 26 |
1 files 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 <iostream> -using namespace std; -using std::cout; +#include <iostream> +#include <fstream> // For the files!!!! +#include <iomanip> // 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"; -} +} |