writing to output file
This is a discussion on writing to output file within the C++ Programming forums, part of the General Programming Boards category; 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 ...