楼主: 
MAIDic (å’©æ»´å¯)   
2014-12-20 16:28:48题目是输入一个二维阵列
然后找出最大值的行列
compaler过关了
但是一执行就会挡掉
#include <stdio.h>
#include <stdlib.h>
int row;
int column;
void locateLargest(double a[row][column]);
int main()
{
int i,j;
double array[i][j];
scanf("%d",&row);
scanf("%d",&column);
for(i=0;i<row;i++)
  {
    for(j=0;j<column;j++)
    {
      scanf("%f",array[ i ][ j ]);
    }
  }
locateLargest(array);
}
void locateLargest(double a[row][column])
{
double max=0;
int i,j,x,y;
for(i=0;i<row;i++)
  {
    for(j=0;j<column;j++)
    {
      if(a[i][j]>max)
      {
         max=a[i][j];
         x=i;
         y=j;
      }
    }
  }
printf("%d%d",x,y);
}
作者: narukaze (Pt)   2014-12-20 16:52:00
1)i,j未给值就用来宣告阵列2)scanf("%f",array[ i ][ j ]); 要加上&