exponent operator/library function

BCS ao at pathlink.com
Mon Aug 4 14:51:43 PDT 2008


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-- )

this is because arr[arr.length] is the elemant after the last element.




More information about the Digitalmars-d-learn mailing list