From ef0fc36b671ded3afc54bba87b7b2a3ea09066b2 Mon Sep 17 00:00:00 2001 From: WiserJ Date: Wed, 3 Nov 2021 16:12:31 -0700 Subject: table display --- CST116F2021-Lab6/CST116F2021-Lab6.cpp | 4 ++-- 1 file 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++; -- cgit v1.2.3