int a[3][3] = {0}, row = 0, column = 0, max = 0;
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
a[i][j] = arc4random() % 1000;
printf("%d ", a[i][j]);
}
printf("\n");
}
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
if (max < a[i][j]) {
max = a[i][j];
row = i;
column = j;
}
}
for (int k = 0; k < 3; k++) {
if (max > a[k][column]) {
break;
} else if (max < a[k][column]) {
if (k == 3) {
printf("鞍点为:%d 第%d行 第%d列\n", a[row][column], row + 1, column + 1);
}
}
}
}