May 06, 2007 Associative Array indexed by int | ||||
---|---|---|---|---|
| ||||
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 07, 2007 Re: Associative Array indexed by int | ||||
---|---|---|---|---|
| ||||
Posted in reply to Regy | 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.
|
Copyright © 1999-2021 by the D Language Foundation