From f8fa8e443fa7e0578567623da71d4620185ce8bc Mon Sep 17 00:00:00 2001 From: jacobdw22 Date: Mon, 28 Nov 2022 17:14:46 -0800 Subject: Now pseudo code is fully complete --- BlankConsoleLab/cst116-lab3-wilson.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/BlankConsoleLab/cst116-lab3-wilson.cpp b/BlankConsoleLab/cst116-lab3-wilson.cpp index dd587b4..66fc614 100644 --- a/BlankConsoleLab/cst116-lab3-wilson.cpp +++ b/BlankConsoleLab/cst116-lab3-wilson.cpp @@ -12,7 +12,7 @@ using std::cin; //Allows use of cin using std::cout; //Allows use of cout using std::endl; //Allows end line using std::setw; //Allows set width -using std::ios; //Allows inut/output stream commands +using std::ios; //Allows input/output stream commands using std::ifstream; //Allows input file stream using std::ofstream; //Allows output file stream @@ -28,12 +28,12 @@ void PrintTotalsAndSummary(ofstream& out, int totalRecords); //Defines int main() //Function main { - int pick[MAX]; //Defines array for pick up - int drop[MAX]; //Defines array for drop off - int psgr[MAX]; //Defines array for passengers - float dist[MAX]; //Defines array for distance - float fare[MAX]; //Defines array for fare - float toll[MAX]; //Defines array for toll + int pick[MAX]; //Defines int array for pick up + int drop[MAX]; //Defines int array for drop off + int psgr[MAX]; //Defines int array for passengers + float dist[MAX]; //Defines float array for distance + float fare[MAX]; //Defines float array for fare + float toll[MAX]; //Defines float array for toll int record_counter(0); //Defines an int that tracks the number of records taken ifstream inFile; //Adds an infile to be used later -- cgit v1.2.3