3D array C++ using int [] operator

后端 未结 7 1886
长发绾君心
长发绾君心 2020-12-15 09:03

I\'m new to C/C++ and I\'ve been cracking my head but still got no idea how to make an \"structure\" like this

\

7条回答
  •  长情又很酷
    2020-12-15 09:27

    You can try:

    for(int i=0;i

    And once you are done using this memory you can deallocate it as:

    for(int i=0;i

提交回复
热议问题