#include<iostream>
using namespace std;
//2*3数组
int main()
{
//数组指针法new动态开辟二维数组
/*
int (*pt)[3]=NULL;
pt=new int [2][3];
for(int i=0;i<2;i++)
for(int j=0;j<3;j++)
cin>>pt[i][j];
for(int i=0;i<2;i++)
{
for(int j=0;j<3;j++)
cout<<pt[i][j];
cout<<endl;
}
delete []pt;
*/
//一维数组法new动态模拟二维数组
/*
int *pt=NULL;
pt=new int [6];
for(int i=0;i<2;i++)
for(int j=0;j<3;j++)
cin>>pt[3*i+j];
for(int i=0;i<2;i++)
{
for(int j=0;j<3;j++)
cout<<pt[i*3+j];
cout<<endl;
}
delete []pt;
*/
//2*3*2三维数组
//数组指针new动态开辟三维数组
/*
int (*pt)[3][2]=NULL;
pt=new int [2][3][2];
for(int i=0;i<2;i++)
for(int j=0;j<3;j++)
for(int k=0;k<2;k++)
cin>>pt[i][j][k];
for(int i=0;i<2;i++)
{
for(int j=0;j<3;j++)
{
for(int k=0;k<2;k++)
cout<<pt[i][j][k];
cout<<endl;
}
cout<<endl;
}
delete []pt;
*/
//一维数组模拟三维数组动态开辟
/*
int *pt=NULL;
pt=new int [12];
for(int i=0;i<2;i++)
for(int j=0;j<3;j++)
for(int k=0;k<2;k++)
cin>>pt[i*6+j*2+k];
for(int i=0;i<2;i++)
{
for(int j=0;j<3;j++)
{
for(int k=0;k<2;k++)
cout<<pt[i*6+j*2+k];
cout<<endl;
}
cout<<endl;
}
delete []pt;
*/
getchar();
getchar();
return 0;
}