forked from pn8rjlxip/System
parent
acd1dddca0
commit
64e8bec9ce
@ -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