Printing the maximum average score and names of students having this maximum average score as per the order in the file .
for ( int i = 0 ; i < names . size ( ) ; i ++ ) { cout << names [ i ] + " ▁ " ; } cout << maxAvgScore ; }