Merge pull request '按选择法将数组num的元素值按从低到高排序' (#1) from pe4c6pn3v/System:master into master

mty.draw
pn8rjlxip 2 years ago
commit 0a07643564

@ -0,0 +1,10 @@
36.void AsSortbyNum(STU stu[], int n, int m)
37.{
38. int i, j, k, t;
39. for (i=0; i<n-1; i++)
40. {
41. k = i;
42. for (j=i+1; j<n; j++)
43. {
44. if (stu[j].num < stu[k].num) k = j;
45. }
Loading…
Cancel
Save