Haoxiang’s Blog
Skip to content
  • Home
  • Blog Posts
  • (中文)
  • (EN)
  • About
  • RSS
  • Messages

2-dimensional array

There is one post tagged 2-dimensional array.

On 2 dimensional array of C++

I was asked about this today. In practice, I rarely use 2-dimensional array, instead I use vector of vectors. To allocate a 2-d array on the stack, a C-style array is int d[2][3]; Then to refer to an element it is like d[i][j]; To make a dynamical allocation, one can NOT write his code like […]

in Blog Posts, C/C++, English, Solution | 2013/04/27 | 4 Comments
这个网站使用的主机 (我的推广链接)
Independent Publisher empowered by WordPress