Three dimensional arrays of integers in C++

前端 未结 7 1541
野的像风
野的像风 2020-12-17 00:05

I would like to find out safe ways of implementing three dimensional arrays of integers in C++, using pointer arithmetic / dynamic memory allocation, or, alternatively using

相关标签:
7条回答
  • 2020-12-17 00:14

    Pieter's suggestion is good of course, but one thing you've to bear in mind is that in case of big arrays building it may be quite slow. Every time vector capacity changes, all the data has to be copied around ('n' vectors of vectors).

    0 讨论(0)
提交回复
热议问题