two dimension Array.. need some help plz

Hello everyone!

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)
"

The work:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
 #include <iostream>
using namespace 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.
Topic archived. No new replies allowed.