搜题
问题   更新时间2023/4/3 12:59:00

[应用题,7.6分] 以下程序中,主函数调用了LineMax函数,实现在N行M列的二维数组中,找出每一行上的最大值。请填空:
#define N 3
#define M 4
void LineMax(int x[N][M])
{ int i,j,p;
for(i=0;i<>
{ p=0;
for(j=1;j<>
if(x[i][p]
cout<<"The max value in line "<<><" is=""><[><>
}
}
main()
{ int x[N][M]={1,.5,7,4,2,6,4,3,8,2, 3,1};
[ ];
}

以下程序中,主函数调用了LineMax函数,实现在N行M列的二维数组中,找出每一行上的最大值。请填空:#define N 3#define M 4void LineMax(int x[N][M]){ int i,j,p;for(i=0;i
王老师:19139051760(拨打)