C++技巧(在c++中用new申請三維數組)

C++技巧(在c++中用new申請三維數組),第1張

C++技巧(在c++中用new申請三維數組),第2張

int main()
{
int * * * array;
int i,j;
int side=5,height=6,width = 7;
array = new int * *[side];//申請一方
for(I = 0;I {
array[I]= new int *[height];
for(j = 0;j array[I][j]= new int[width];
}
/array [0] [0] = 9進行測試;
cout }

位律師廻複

生活常識_百科知識_各類知識大全»C++技巧(在c++中用new申請三維數組)

0條評論

    發表評論

    提供最優質的資源集郃

    立即查看了解詳情