forked from pn8rjlxip/System
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
242 B
10 lines
242 B
2 years ago
|
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. }
|