#include
#include
using namespace std; //不要忘了这个
int main()
{
int m,n;
while(cin>>m>>n)
{
int **p,i,j,max,x,y;
max =0; //对max赋初值
p=new int*[m];
for(i=0;i { p[i]=new int[n]; } for(i=0;i for(j=0;j { cin>>p[i][j]; if(p[i][j]>=0) { if(p[i][j]>max) { max=p[i][j]; x=i+1; y=j+1; } } else { if((-p[i][j])>max) { max=-p[i][j]; x=i+1; y=j+1; } } } cout<<"绝对值最大的元素是第"< // cout< for(i=0;i { delete [] p[i]; } } return 0; }