I need to write the following program: Create an array with 5 indexes, where each index points to an integer array, the array must be hardcoded in the main function. The first index in the array represents the number of indexes after him, for example if in the first index the number is 5 then it means there are 5 indexes after him (6 in total). The arrays can be in different sizes. I need to write two function, 1 function that gets this "matrix" as a parameter, and sorts each line in it from small to big(except from the first index). Second function gets this "matrix" as a parameter and prints it, including the first index. In this case I have no clue how to write the program and so I'm asking for help.
Aucun commentaire:
Enregistrer un commentaire