I still having trouble getting the right alignment on the outfile text file, the expected output should look like this:
Code:
s4569 Barnett, Linda D 44.80 F
s5333 Reefs, Christopher D 79.80 D
But my one, it look like this:
Code:
s4569 Barnett, Linda D 44.80 F
s5333 Reefs, Christopher D 79.80 D
I have set this already:
Code:
outfile<<studentid<<" "<<surname<<", "<<givenname<<left<<setw(10)<<time<<" "<<score<<" "<<grade<<endl;
When the surname and givenname has more letters, it just move more space to the right in which I can't get the same results as the expected output. How can this be fixed?