Array out of bounds

Barry Denton basse42 at yahoo.com
Mon Apr 14 14:14:25 PDT 2008


from the examples I  try to do 

int COUNT = 10000;
    char [COUNT][] itemStrings ;
    for (int i = 0; i < COUNT; i++) {
      
      itemStrings [i][] = ("item " ~ to!(char[]) (i));

2 problems -does not accept COUNT as the size
and if I use char[10000] its OK but after compiles OK but index out of bounds error given on itemStrings[][]   line


More information about the Digitalmars-d-learn mailing list