?? 6_9.cpp
字號:
//6_9.cpp
#include <iostream>
using namespace std;
void main()
{
int array2[2][3]={{11,12,13},{21,22,23}}; //聲明二維int型數組
for(int i=0;i<2;i++)
{
cout<<*(array2+i)<<endl; //輸出二維數組第i行的首地址
for(int j=0;j<3;j++)
{ cout<<*(*(array2+i)+j)<<" "; } //逐個輸出二維數組第i行元素值
cout<<endl;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -