(Sort two-dimensional array) Write a function to sort a two-dimensional array using following header:
void sort(int m[][2], int numberOfRows)
The function performs a sort primarily on the first element in the rows and then secondarily on the second element in the rows if the first elements are equal. For example, the array {{4, 2 }, {1, 7 }, {4, 5 }, {1, 2 }, {1, 1 }, {4, 1 }} will be sorted to {{1, 1 }, {1, 2 }, {1, 7 }, {4, 1 }, {4, 2 }, {4, 5 }}. Write a test program that prompts the user to enter 10 points, invokes this function, and displays the sorted points.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.