diff options
| -rw-r--r-- | CST116F2021-Lab6/CST116F2021-Lab6.cpp | 4 |
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++; |