exponent operator/library function
Jarrett Billingsley
kb3ctd2 at yahoo.com
Mon Aug 4 16:05:38 PDT 2008
"BCS" <ao at pathlink.com> wrote in message
news:55391cb32ff418cac458bee9a3c8 at news.digitalmars.com...
> Reply to Michael P.,
>
>> Anyways, everything is compiling fine, but I get an ArrayOutOfBounds
>> error on line 125 or something.
>>
>
>
> line 125: for ( int i = arrayToConvert.length; i > 0; i-- )
>
> that should be:
>
> for ( int i = arrayToConvert.length - 1; i > 0; i-- )
You mean i >= 0, I suppose. ;)
> this is because arr[arr.length] is the elemant after the last element.
No offense BCS, but for someone so well-spoken and intelligent, I'm kind of
shocked at how poor/inconsistent your spelling is. "elemant" and "element"
in the same sentence?
More information about the Digitalmars-d-learn
mailing list