-->
当前位置:首页 > 题库

PROGRAMMING:Student ranking

Luz5年前 (2021-05-10)题库449
Write the program, input n (n < 10) students' student numbers from the keyboard (the student number is a 4-digit integer, starting from 1000), and store the scores into the structure array, sort the students according to the scores from low to high, and output the sorted student information.
Input and output example: description in brackets, no input and output required
###Input example:
```in
three ( n=3)
1000 85
1001 90
1002 75
```
###Output example:
```out
1002 75
1000 85
1001 90
```






answer:If there is no answer, please comment