#include <iostream>
using namespace std;
void find( int array[][3], int row/*, int col*/);
int main()
{
int iarray[3][3] = {1, 2, 3, 4, 5, 6, 7, 8, 9};
find(iarray, 3/*, 3*/);
return 0;
}
void find( int array[][3], int row/*, int col*/)
{
int col = 3;
for (int r = 0, c = 0; r < row; ++r)
{
int r_max = array[r][0];
for (c = 0; c < col; ++c)
{
if (r_max < array[r][c])
{
r_max = array[r][c];
}
}
//找到本行最大值的点,判断该列上是否是最小值
--c;
for ( int rr = 0; rr < row; ++rr)
{
if (array[rr][c] > r_max)
{
continue;
}
}
if(r == row) cout << r_max << endl;
}
}
using namespace std;
void find( int array[][3], int row/*, int col*/);
int main()
{
int iarray[3][3] = {1, 2, 3, 4, 5, 6, 7, 8, 9};
find(iarray, 3/*, 3*/);
return 0;
}
void find( int array[][3], int row/*, int col*/)
{
int col = 3;
for (int r = 0, c = 0; r < row; ++r)
{
int r_max = array[r][0];
for (c = 0; c < col; ++c)
{
if (r_max < array[r][c])
{
r_max = array[r][c];
}
}
//找到本行最大值的点,判断该列上是否是最小值
--c;
for ( int rr = 0; rr < row; ++rr)
{
if (array[rr][c] > r_max)
{
continue;
}
}
if(r == row) cout << r_max << endl;
}
}