Mail Archives: djgpp/1999/03/09/13:25:55
Dennis Yelle <dennis51 AT jps DOT net> wrote in message
news:36E22399 DOT 3B91F063 AT jps DOT net...
>Andrew Davidson wrote:
>>
>> Dennis Yelle <dennis51 AT jps DOT net> wrote in message
>> news:36E08691 DOT ED519155 AT jps DOT net...
>> >Andrew Davidson wrote:
>> I'm using C and the lengths (determined during compilation) should stay
the
>> same. As an example I'm trying for something like the following
structure:
>>
>> char **mylist=
>> {
>> {1,2,3,4},{5,6,},{7,8,9,10,11,12},{etc,etc,etc,etc}
>> }
>>
>> But that fails to compile correctly. It goes on about there being too
many
>> braces or something (not unmatched braces, it's definately not an error
on
>> my part but my lack of understanding that's to blame).
>
>Does this solve your problem?:
>
>#include <stdio.h>
>
>#define etc 87
>
>char mylist[4][6] =
>{
> {1,2,3,4},{5,6,},{7,8,9,10,11,12},{etc,etc,etc,etc}
>};
It compiles but it doesn't solve my problem. I want to define mylist like:
char mylist[][]=
{
{1,2,3,4},{5,6,},{7,8,9,10,11,12},{etc,etc,etc,etc}
};
And this it doesn't like. Basically mylist is going to be a bit on the big
size and the thought of havnig to go through and recalculate the array sizes
every time I change something is a bit of a drag really.
- Raw text -