C++ equivlence of int[][] x.length
- From: "Jack" <jl@xxxxxxxxxx>
- Date: Tue, 6 Jun 2006 15:35:41 +0800
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
.
- Follow-Ups:
- Re: C++ equivlence of int[][] x.length
- From: Alex Blekhman
- Re: C++ equivlence of int[][] x.length
- From: Mark Randall
- Re: C equivlence of int[][] x.length
- From: Jack
- Re: C++ equivlence of int[][] x.length
- Prev by Date: Re: Cannot convert from 'Type' to 'const Type&' error with templates
- Next by Date: Re: IViewObject::Freeze
- Previous by thread: Format time Year Month Day hour minute second millisecond
- Next by thread: Re: C equivlence of int[][] x.length
- Index(es):
Relevant Pages
|