// BlankConsoleLab.cpp : This file contains the 'main' function. Program execution begins and ends there. /* * Benjamin Smith * CST 116 * Lab 3 */ #include #include #include using namespace std; int counter = 0; int pickup[50], dropoff[50], passengers[50]; double distance_trav[50], fare[50], toll[50]; int main() { ifstream newfile; newfile.open("C:\\Users\\cowpi\\source\\repos\\cst116-lab3-Smith-Benjamin\\large.txt"); if (newfile.is_open()) { while (!newfile.eof()) { newfile >> pickup[counter] >> dropoff[counter] >> passengers[counter] >> distance_trav >> fare[counter] >> toll[counter]; counter++; } } newfile.close(); for (int counter = 0; counter < 50; counter++) cout << pickup[counter] << " " << dropoff[counter] << " " << passengers[counter] << " " << distance_trav[counter] << " " << fare[counter] << " " << toll[counter] << endl; }