2.- Programar el método de ordenamiento por burbuja usando estructura de datos. #include #include #include #define MAX 50 struct ordenamiento {int elem ; }; void leerarray(int,struct ordenamiento []); void burbuja (int,struct ordenamiento []); void muestra (int,struct ordenamiento []); void main() { int n; struct ordenamiento orden[MAX]; cout >n; leerarray(n,orden); burbuja (n,orden); cout >a[i].elem; } } void burbuja (int n,struct ordenamiento a[]) { int i,j; struct ordenamiento temp; for(i=1;i =i;j--) if(a[j-1].elem >a[j].elem) { temp=a[j-1]; a[j-1]=a[j]; a[j]=temp; } } void muestra (int n,struct ordenamiento a[]) { for(int i=0;i