Is there not a C function that can do this?
failing that, set an integer and use a while loop. something like
// iterate through array using whatever function it is, MoveNext or
whatever.
// increment the integer.
// check for '/0'
// iterate again
something like that I guess.
>From: Juliano Pável Brasil Custódio <jp...@bo...>
>To: <dev...@li...>
>Subject: RE: [Dev-C++] Number of elements of a multidimensional array
>Date: Thu, 28 Nov 2002 09:26:23 -0300
>
> So far as I know, it is not possible to do what you want. The
>programmer must control the size of this kind of array so he can
>manipulate it. If it wasn't a pointer you could achieve it by dividing
>the array by the size of one single element or something like this... Or
>if you stored Null terminated strings you could search for the '\0'
>character... Beyond this two cases, I don't know if it's possible, but
>if someone else know any way, I'd like to know it too.
>
> Juliano
>
>-----Original Message-----
>From: dev...@li...
>[mailto:dev...@li...] On Behalf Of Luc
>Saint-Elie
>Sent: quinta-feira, 28 de novembro de 2002 06:35
>To: dev...@li...
>Subject: [Dev-C++] Number of elements of a multidimensional array
>
>
>Venha para a VilaBOL!
>O melhor lugar para você construir seu site. Fácil e grátis!
>http://vila.bol.com.br Hello,
>
>I know this is a basic question...
>How can I know the number of elements of a multidimensional array (char
>**result) ?
>
>Thanks in advance
>
>Luc
>
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: Get the new Palm Tungsten T
>handheld. Power & Color in a compact size!
>http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
>
>
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: Get the new Palm Tungsten T
>handheld. Power & Color in a compact size!
>http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
|