Re: C++ equivlence of int[][] x.length



You must use vector<int>'s

C++ has no concept of a native managed array.

--
- Mark Randall
http://www.temporal-solutions.co.uk

"We're Systems and Networks..."
"It's our job to know..."
"Jack" <jl@xxxxxxxxxx> wrote in message
news:u%23irRvTiGHA.1208@xxxxxxxxxxxxxxxxxxxxxxx
Hi,
In java, you can extract the height and width of an array. In C++, how can
u do the same?
In java, I do this
int width = img[0].length;
int height = img.length;

Type of img is int[][]
Thanks in advance
Jack




.