4
Jones, William B. 83 71 69 97
Henry, Jackson Q. 85 85 88 100
Tell, R. C. 41 95 23 59
Cumming, Rodney J. 92 87 88 96
Doran, Johan Jeffrey 89 79 64 71
Smith, John R. 68 93 84 79
so far i got this
fin >> howmany;
GetString(fin, tempname, 20);
while (!fin.eof() && n < 40)
{
names[n] = tempname;
fin.ignore(128, '\n');
n++;
GetString(fin, tempname, 20);
}
Getstring is a function i developed that read string up to 20 column length
83 71 69 97
Jones, William B.
85 85 88 100
Henry, Jackson Q.
41 95 23 59
Tell, R. C.
92 87 88 96
Cumming, Rodney J.
89 79 64 71
Doran, Johan Jeffrey
68 93 84 79
Smith, John R.
output
Name Jones, William B.
Score 83 71 69 97
Average 80
Name Henry, Jackson Q.
Score 85 85 88 100
Average 89.5
Name Tell, R. C.
Score 41 95 23 59
Average 54.5
Name Cumming, Rodney J.
Score 92 87 88 96
Average 90.75
Name Doran, Johan Jeffrey
Score 89 79 64 71
Average 75.75
Name Smith, John R.
Score 68 93 84 79
Average 81