Foreach Access Violation

BCS ao at pathlink.com
Tue Oct 21 11:33:20 PDT 2008


Reply to nobody,

> "BCS" <ao at pathlink.com> wrote in message
>> Apple[] apples = new Apples[10];
>> for(int i = 0; i < 10; i++)
>> {
>> apples[apples.length-1] = new Apple();
>> }


Oops. typo


>> apples[i] = new Apple();




More information about the Digitalmars-d-learn mailing list