How do I use a User define function to print the location values in a two dimension array so that the numbers are aligned in columns and each row is printed on a separate line. Language is C++
These are the variable used
short data[15][15], // original data set with 15 rows and 15 columns
rows, // number of rows of data in 2 dimension array
cols, // number of columns of data in 2 dimension array
locations[225][2], // array to store the locations (row and column offsets/indices) of the search value
Rsize, // number of rows in locations array that contain a value
search_value, // search value entered by user
response; // input from user to continue inner loop
Here is the start of my user define function
void display_2darrayL(short locations[][2], short rows, short cols)