Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void ricerca(studente elenco[], int x)
- {
- studente temp;
- int i,j,imin;
- for(i=0;i<x-1;i++){
- imin=i;
- for(j=i+1;j<x;j++)if(strcmp(elenco[imin].nominativo,elenco[j].nominativo)>0)imin=j;
- temp=elenco[i];
- elenco[i]=elenco[imin];
- elenco[imin]=temp;
- }
- }
Add Comment
Please, Sign In to add comment