forked from pn8rjlxip/System
Compare commits
1 Commits
Author | SHA1 | Date |
---|---|---|
pe4c6pn3v | 64e8bec9ce | 2 years ago |
@ -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…
Reference in new issue