Associative Array indexed by int

Johan Granberg lijat.meREM at OVEgmail.com
Mon May 7 07:01:20 PDT 2007


Regy wrote:

> I would like to make an char associative array indexed by int... For
> example: cont[3]="D lang";
> I tried declare it like this:
> char[] [int] cont;
> 
> but it doesn`t work properly... I`ve got a Segmentation Core Fault all the
> time... How to declare it properly?

This is the old newsgroup the new one is digitalmars.D

The code you posted looks corect so te problem is probably in other parts of
your code.



More information about the Digitalmars-d mailing list