Student Name Program Test Course Letter
Average Average Average Grade
Jason Jones 82.80 93.00 87.90 B
Kathy Steinfield 81.00 92.50 86.75 B
Kevin Burnette 86.20 89.00 87.60 B
Josh Eley 89.20 84.50 86.85 B
Susie Lattimore 76.20 78.00 77.40 C
Stacey Smith 89.60 96.50 93.05 A
Aaron Nesmith 66.40 83.50 74.95 C
I see that the text file contains, on each line: string string int int int int int int int.
Your code for reading in each line is this: fin>>studentName>>programAverage>>testAverage>>thirdProgram>>courseAverage>>courseGrade;
Which looks like it will attempt to read in: string int int int int char.
That looks a bit problematic. Surely you should be trying to read in two strings and then seven ints from each line?