From: Erik Max Francis Newsgroups: comp.os.msdos.djgpp Subject: Re: Quick question about structures Date: Tue, 26 Aug 1997 08:27:14 -0700 Organization: Alcyone Systems Lines: 29 Message-ID: <3402F5D2.544BDC1@alcyone.com> References: <33FF4F20 DOT 7FEC AT sentex DOT net> NNTP-Posting-Host: newton.alcyone.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 Precedence: bulk Temujin wrote: > Question is: Each record in 'things' will change during runtime, is > there a better, more efficient way to assign the bitmaps in the > howdy[] > over to the five[] array? Like some way of using pointers or > something. > Such as things[0].five=gen.five or something along that line, instead > of > assigning them by EACH individual record, by way of /*linein > question*/ You seem to want to have a dynamically-allocatable array, which you can assign at whim. You can't do this with normal arrays, since an array name is not an lvalue. You can simply dynamically allocate the space for the five BITMAPs, and just point to it in the structure. Ultimately, though, having to manually copy five pointers iteratively is probably not worth dynamically managing such a small amount of memory. -- Erik Max Francis, &tSftDotIotE / mailto:max AT alcyone DOT com Alcyone Systems / http://www.alcyone.com/max/ San Jose, California, United States / icbm://37.20.07n/121.53.38w \ "War is like love; / it always finds a way." / Bertolt Brecht