I'm having trouble solving this porblem.
Write only the “snippet” of C++ code for a function definition, fillArray, which fills int_array. Repeatedly prompt the user to enter an integer at the keyboard. (Input values should be stored in row order). fillArray has one argument, the 2D array. 'Protect' arrray values from being changed by the function when necessary. This is what I have so far.
void fillArray(int int_array)
{
for (int row=0; row<rows; row++)
{
for (int column=0; column<columns; column++)
{
cout <<"Enter an integer:";
cin>>int_array;
}
}
}