I came from C, but sadly haven't needed using 2 dimensional arrays enough to be able to say something useful.
I tend to use std::array and std::vector anyway.
std::array
std::vector
But definitely no linear initialisation. It's already too hard to remember which pointers the first [] vs second [] refer to.
[]
The center for all discussion and news regarding C++.
I came from C, but sadly haven't needed using 2 dimensional arrays enough to be able to say something useful.
I tend to use
std::array
andstd::vector
anyway.But definitely no linear initialisation. It's already too hard to remember which pointers the first
[]
vs second[]
refer to.