Home > Back-end >  There are five students, each student, including student id, name, three classes of results. 5 stude
There are five students, each student, including student id, name, three classes of results. 5 stude

Time:12-08

There are five students, each student, including student id, name, three classes of results from the keyboard input data, five students 1) print out the total average score of each course; 2) requirements in accordance with the order of the total score from high to low print out student data (including student id, name, three classes of scores, total score)
Analysis:
1) the students in the main function of input data, establish a one-dimensional students structure array
2) with business () function for each course score
3) use the sort () function to each student's total score for sorting, (using a pointer variable as the parameter)
4) use the print () function outputs a score after sorting of students information
5) program through debugging, and then input the student program period of writing data into the input () function, in the main () function calls it, set up student data array

CodePudding user response:

Try to write about himself first, activities, or search on the Internet, in a word, his first corretly try,