How do i use a user define function to print the location


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)

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: How do i use a user define function to print the location
Reference No:- TGS02774407

Now Priced at $15 (50% Discount)

Recommended (95%)

Rated (4.7/5)