aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWiserJ <[email protected]>2021-11-03 16:12:31 -0700
committerWiserJ <[email protected]>2021-11-03 16:12:31 -0700
commitef0fc36b671ded3afc54bba87b7b2a3ea09066b2 (patch)
tree6e05330b5545cf5d62c648ae72c751a9659b0874
parentgetline changes (diff)
downloadcst116-lab6-jeffwoit-ef0fc36b671ded3afc54bba87b7b2a3ea09066b2.tar.xz
cst116-lab6-jeffwoit-ef0fc36b671ded3afc54bba87b7b2a3ea09066b2.zip
table display
-rw-r--r--CST116F2021-Lab6/CST116F2021-Lab6.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/CST116F2021-Lab6/CST116F2021-Lab6.cpp b/CST116F2021-Lab6/CST116F2021-Lab6.cpp
index 6eba091..4ead57c 100644
--- a/CST116F2021-Lab6/CST116F2021-Lab6.cpp
+++ b/CST116F2021-Lab6/CST116F2021-Lab6.cpp
@@ -20,7 +20,7 @@ int main()
inputData(student_number, club_pres_name);
fundCalc(student_number, fund_value);
-
+ tableDisp(student_number, fund_value, club_pres_name);
}
@@ -34,7 +34,7 @@ void inputData(int inputStuNum[], string inputClubPres[][2])
getline(cin >> ws,inputClubPres[i][0]);
cout << "Please enter the club president: ";
getline(cin >> ws,inputClubPres[i][1]);
- cout << "Please enter the number of students in " << inputClubPres[0] << ": ";
+ cout << "Please enter the number of students in " << inputClubPres[i][0] << ": ";
cin >> inputStuNum[i];
cout << endl;
i++;