Mail Archives: djgpp/1997/02/25/05:26:41
Brian Osman wrote:
> > void cube_init (struct cubestruct *cube)
> > {
> > cube->point[1][1][0] = {+1, +1, -1};
> > cube->point[1][1][1] = {+1, +1, +1};
> > };
> >
> > ----------------------------------------------
> > Vilhelm "Ville" Sjoeberg
>
> Your struct declaration only makes the arrays with one element.
> So, only cube->point[0][0][0] is defined. Make it:
>
> struct pointstruct point[2][2][2];
>
> Got it?
Not to mention that his aggregate initializer syntax is only good in, well,
initializers.
--
Erik Max Francis, &tSftDotIotE / email: max AT alcyone DOT com
Alcyone Systems / web: http://www.alcyone.com/max/
San Jose, California, United States / icbm: 37 20 07 N 121 53 38 W
\
"I am become death, / destroyer of worlds."
/ J. Robert Oppenheimer (quoting legend)
- Raw text -