Re: C++ equivlence of int[][] x.length
- From: "Mark Randall" <mark[__OKTHISISFAKE_]yr@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 6 Jun 2006 10:48:39 +0100
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
.
- References:
- C++ equivlence of int[][] x.length
- From: Jack
- C++ equivlence of int[][] x.length
- Prev by Date: Re: C equivlence of int[][] x.length
- Next by Date: Re: how to turn jpgs to vector
- Previous by thread: Re: C equivlence of int[][] x.length
- Next by thread: Re: C++ equivlence of int[][] x.length
- Index(es):