I'm having trouble implementing this function definition, any help will be appreciated.
Write only the “snippet” of C++ code for a function definition, printColumn, which prints to the console the values in a column specified by the user in the function call. printColumn has two arguments, the 2D array and a integer column number, listed in this order. ‘Protect’ arguments from being changed by the function when necessary. So far I have this.
void printColumn (int int_array[][], int number)
{
for (int i=0; i<number; i++)
{
int_array[i].printColumn();
}
}