aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWiserJ <[email protected]>2021-11-03 16:37:02 -0700
committerWiserJ <[email protected]>2021-11-03 16:37:02 -0700
commit00dad8264893fce9bdc0b6731331c8d3436f1d82 (patch)
treed4ed0d3d83055e229416b5035f29316249d7c8f0
parenttable display (diff)
downloadcst116-lab6-jeffwoit-00dad8264893fce9bdc0b6731331c8d3436f1d82.tar.xz
cst116-lab6-jeffwoit-00dad8264893fce9bdc0b6731331c8d3436f1d82.zip
final attempt
-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 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++;
}