summaryrefslogtreecommitdiff
path: root/BlankConsoleLab/CST116-Lab3-Havaldar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'BlankConsoleLab/CST116-Lab3-Havaldar.cpp')
-rw-r--r--BlankConsoleLab/CST116-Lab3-Havaldar.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/BlankConsoleLab/CST116-Lab3-Havaldar.cpp b/BlankConsoleLab/CST116-Lab3-Havaldar.cpp
index a9d3c97..3833d43 100644
--- a/BlankConsoleLab/CST116-Lab3-Havaldar.cpp
+++ b/BlankConsoleLab/CST116-Lab3-Havaldar.cpp
@@ -24,8 +24,10 @@ int main()
cout << "Please enter the input file name including extension: ";
cin >> fileName;
+ //opening the file
ifstream theFile(fileName);
+ //variables within the opened file
int count = 1;
int pick;
int drop;
@@ -34,6 +36,7 @@ int main()
double fare;
double toll;
+ //variables which are to calculate
double avg = 0;
int totalPpl = 0;
double totalCost = 0;