diff options
Diffstat (limited to 'CST116F2021-Lab6/CST116F2021-Lab6.cpp')
| -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 4ead57c..6043619 100644 --- a/CST116F2021-Lab6/CST116F2021-Lab6.cpp +++ b/CST116F2021-Lab6/CST116F2021-Lab6.cpp @@ -56,10 +56,10 @@ void fundCalc(int calcNumStu[], int calcFund[]) void tableDisp(int dispNumStu[], int dispFund[], string dispClubPres[][2]) { int i = 0; - cout << "Student Club\tPresident\tNumber of Students\tClub Fund" << endl; + cout << "Student Club" << setw(27) << "President" << setw(25) << "Number of Students" << setw(15)<< "Club Fund" << endl; while (i < ARRAY_SIZE) { - cout << dispClubPres[i][0] << '\t' << dispClubPres[i][1] << '\t' << dispNumStu[i] << '\t' << dispFund[i]; + cout << setw(23) << dispClubPres[i][0] << setw(16) << dispClubPres[i][1] << setw(22) << dispNumStu[i] << setw(15) << dispFund[i]; cout << endl; i++; } |