double fmax(double a[][m],int n,double *pmin) { // m必须是常量
int i,j;
double max;
max = *pmin = a[0][0];
for(i = 0; i < n; ++i) {
for(j = 0; j < m; ++j) {
if(max < a[i][j]) max = a[i][j];
if(*pmin > a[i][j]) *pmin = a[i][j];
}
}
return max;
}