D - Associative Array indexed by int
- Regy (6/6) May 06 2007 I would like to make an char associative array indexed by int... For exa...
- Johan Granberg (4/11) May 07 2007 This is the old newsgroup the new one is digitalmars.D
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?
May 06 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.
May 07 2007