#include using namespace std;int main(){int n, m;int i,j;cout n;cout m; int **matrix = new int*[n]; for (i = 0; i < n; i++) *(matrix + i) = new int[m]; for (i = 0; i < n; i++) for (j = 0; j < m; j++) *(*(matrix + i) + j) = rand()%10-3; int *tmp_ptr; for (i = 0; i < n; i++) for (j = 0; j < n - 1; j++) if (**(matrix + j) > **(matrix + j + 1)) { tmp_ptr = *(matrix + j); *(matrix + j) = *(matrix + j + 1); *(matrix + j + 1) = tmp_ptr; } for (i = 0; i < n; i++) { for (j = 0; j < m; j++) cout
|