diff options
| author | Evan <[email protected]> | 2022-11-23 17:18:24 -0800 |
|---|---|---|
| committer | Evan <[email protected]> | 2022-11-23 17:18:24 -0800 |
| commit | 7396c9935b14f5105660c576907bd901f8a07958 (patch) | |
| tree | 2eec737a52d1266560f9beb842ba294dadc89e4c | |
| parent | lkjhdsvjiuy (diff) | |
| download | cst116-lab3-evanmihm-7396c9935b14f5105660c576907bd901f8a07958.tar.xz cst116-lab3-evanmihm-7396c9935b14f5105660c576907bd901f8a07958.zip | |
setw
| -rw-r--r-- | BlankConsoleLab/BlankConsoleLab.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp index f33c0e2..23839e7 100644 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ b/BlankConsoleLab/BlankConsoleLab.cpp @@ -67,8 +67,6 @@ int main() cout << "\n\n\t\t ** About to EXIT NOW! ** "; } - - return 0; } int ReadData(ifstream& inFile, int pick[], int drop[], int psgr[], float dist[], float fare[], float toll[]) @@ -76,6 +74,9 @@ int ReadData(ifstream& inFile, int pick[], int drop[], int psgr[], float dist[], int counter = 0; inFile >> pick[counter] >> drop[counter] >> psgr[counter] >> dist[counter] >> fare[counter] >> toll[counter]; // Priming Read + cout << "Pick" << setw(12) << "Drop" << setw(14) << "Passangers" << setw(12) + << "Distance" << setw(14) << "Fare" << setw(14) << "Toll" << endl; + while (!inFile.eof()) { cout << setiosflags(ios::left) |