Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void ordAlfabetico(tAlumno vAlumnos[TAM])
- {
- int i,j;
- for(i=0; i<TAM; i++)
- for(j=0; j<=TAM-1; j++)
- {
- if(strcmp(vAlumnos[j].nombre,vAlumnos[j+1].nombre)>0)
- {
- intercambiar(&vAlumnos[j],&vAlumnos[j+1]);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement