该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
#include
#include
#include
#include
#define MAX 100
int main()
{
int a[ MAX ][ MAX ], size, i,t ;
cout <
cin >> size;
srand(time(0));
for( i = 0; i
{
for( t = 0; t
{
a[i][t] = rand() % 10;
cout <
}
cout <
}
int max;
for( i = 0; i
{
max = 0;
int temp;
bool find = true;
for( t = 0; t
{
if( a[ i ][ t ] > max )
max = a[ i ][t];
}
cout <
for( int u = 0; u
{
if( a[ i ][ u ] == max ){
temp = u;
break;
}
}
cout <
for( int v = 0; v
{
if( a[ v ][ temp ]
find = false;
break;
}
}
if( find )
cout <
}
return 0;
}
自己编的,可以运行,数组的值都是随机产生的