SHARE
TWEET

q4

matheus__serpa Jun 30th, 2020 1,079 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void algoritmo(f *A, int N){
  2.     int i, j, m;
  3.     for(i = 0; i < N - 1; i++){
  4.         m = i;
  5.         for(j = i + 1; j < N; j++)
  6.             if(A[j].s < A[m].s)
  7.                 m = j;
  8.         if(A[i].s != A[m].s)
  9.             swap(&A[i], &A[m]);
  10.     }
  11. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top