编辑代码

#include <stdio.h>
int main()
{	int i,j,row=0,colum=0,max;
	int p[1080][1920];
	p[734][52] = 13;
	p[276][93] = 15;
	p[152][53] = 928;
	p[15][355] = 2475;
	p[516][145] = 98;
	max = p[0][0];
	for(i=0;i<=1080;i++)
		for(j=0;j<=3;j++)
		if(p[i][j]>max)					//如果某元素大于max,就取代max的原值
		{	max=p[i][j];
			row=i;					//记下此元素的行号
			colum=j;					//记下此元素的列号
		}
	printf("max=%d\nrow=%d\ncolum=%d\n",max,row,colum);
	return 0;
}