PROGRAMMING:Calculate the number one in college entrance examination
The results of the college entrance examination have been announced, and we are filling in our volunteers. The design of a student class, four subjects achievement is its private members, namely Chinese, mathematics, English, comprehensive. There is a function to calculate the number one student in the college entrance examination, which is its friend function in the form of student top (const student * P, int count).
The above class names and friend functions must be in accordance with the requirements of the title and cannot be modified.
Enter the name and grade of four subjects, ending with 0( No more than 100 students)
The output is the total score of the champion.
Input example:
Alice 105 107 107 230
Bob 112 120 120 250
0
Output example:
602
answer:If there is no answer, please comment
The above class names and friend functions must be in accordance with the requirements of the title and cannot be modified.
Enter the name and grade of four subjects, ending with 0( No more than 100 students)
The output is the total score of the champion.
Input example:
Alice 105 107 107 230
Bob 112 120 120 250
0
Output example:
602
answer:If there is no answer, please comment