I need your help please with this proram
I couldn't do it good so far becasuse i don't know how
I'' show you the quastion that i have 2 do the program for and I'll show you the work that I've do yet
The quasstion:
"
Write a C++ function that takes as parameters an int two dimensions array and its size (int rows, int clo). The function should return the maximum element in the array.
Function prototype should be int maxElement( int arr[][], int rows, int clo)
"
#include <iostream>
usingnamespace std;
int maxElement( int arr[4][5], int rows, int clo)
{ int i;
int j;
for(i=0;i<4;i++)
{int rows;
int max;
cin>>arr[i][j];
}
for(j=0;j<5;j++)
{int clo;
int max;
cin>>arr[i][j];
max*=1;
}
return max;
}
int main()
{int arr[][];
int max;
int maxElement( int arr[][], int rows, int clo)
system("pause");
}
If you know the problems plz help .. i don't have much time.