Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void algoritmo(f *A, int N){
- int i, j, m;
- for(i = 0; i < N - 1; i++){
- m = i;
- for(j = i + 1; j < N; j++)
- if(A[j].s < A[m].s)
- m = j;
- if(A[i].s != A[m].s)
- swap(&A[i], &A[m]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement