From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: quest: initializing many structs Date: Thu, 20 Feb 1997 22:04:29 -0800 Organization: Two pounds of chaos and a pinch of salt Lines: 19 Message-ID: <330D3AED.6EF9@cs.com> References: <5ehr3s$3s3 AT mn5 DOT swip DOT net> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp106.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Ville Sjoberg wrote: > > I'm having trouble setting the initial parameters for a cube. From the > code below, it should be obvious what I'm trying to do. What is the > proper way of doing this in C? Try this: struct cubestruct { struct pointstruct point[2][2][2]; }; -- --------------------------------------------------------------------- | John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com | | Proud owner of what might one | http://www.cs.com/fighteer | | day be a spectacular MUD... | Plan: To make Bill Gates suffer | ---------------------------------------------------------------------