here is my code
for (x=0; x< NOSTUD; x++){
oFile.setf(ios::left);
oFile<<setw(9)<<(string)ssn[x]<<" "<<setw(19);
oFile.setf(ios::left);
oFile<<(string)name[x];
oFile.setf(ios::right);
oFile<<" "<<setw(7)<<setprecision(2)<<(double)average[x]<<setw(7)<<setprecision(2)<<z_score[x]<<setw(12)<<percentile[x]<<endl;
}
here is my output
Michael smith
Student Scores
-------------------+----+----+----+----+----+----+----+----+----+----+
SSN Name Average z-score Percentile
-------------------+----+----+----+----+----+----+----+----+----+----+
120555555 smith,elaine 98.00 1.00 100
222222222 smith,michael 93.00 -1.00 0
-------------------+----+----+----+----+----+----+----+----+----+----+
Average Std Dev
95.50 2.50
How can I get the second name to left justify