?? p143 5.5.cpp
字號:
#include<iostream>
using namespace std;
int main()
{ int a[3][4],colum=0,row=0;
int i,j,max;
cout<<"please input the numbers: ";
for(i=0;i<3;i++)
for(j=0;j<4;j++) cin>>a[i][j];
max=a[0][0];
for(i=0;i<3;i++)
for(j=0;j<4;j++)
{ if(max<a[i][j]) { max=a[i][j];
row=i; colum=j;
}
}
for(i=0;i<3;i++)
{ for(j=0;j<4;j++) cout<<a[i][j]<<" ";
cout<<endl;
}
cout<<"the biggest number is "<<max<<endl;
cout<<"the row= "<<row<<" the colum="<<colum;
system("pause");
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -