Merge pull request '使数据按降序排序' (#3) from XZL_使数据按降序排序 into master

XZG_按选择法将数组sum的元素值排序
pvfj5ugro 2 years ago
commit f21b8e33a4

@ -201,7 +201,7 @@ int Ascending(float a,float b)
``` ```
int Descending(float a,float b) int Descending(float a,float b)
{ {
return a > b; // 这样比较决定了按降序排序,如果 a>b则交换
} }
``` ```

Loading…
Cancel
Save