You could use a pointer, which defaults to the base element of an array when
pointed to it, and then use ++ to go to the next element. This will of
course not work with multi-byte characters or unicode characters.
>From: j b <com...@ya...>
>To: dev...@li...
>Subject: [Dev-C++] atof...
>Date: Sun, 19 Jan 2003 14:48:50 +0100 (CET)
>
>
>i need to convert the chars in an array into float and put them onto a
>stack... i used atof but i can't change the address of the elements of the
>array so i always put the same value into the stack... can anyone help??
>
>kind regards...
>
>
>
>---------------------------------
>Gesendet von http://mail.yahoo.de.
>Bis zu 100 MB Speicher bei http://premiummail.yahoo.de.
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
|