From: Matthew Heyman Newsgroups: comp.os.msdos.djgpp,comp.os.programmer,comp.graphics.algorithms Subject: Re: struct problem Date: Wed, 11 Aug 1999 14:45:25 +0000 Organization: Airnews.net! at Internet America Lines: 32 Message-ID: X-Orig-Message-ID: <37B18C85 DOT 1DEA AT airmail DOT net> References: <37B194E6 DOT 71053A3 AT gascad DOT at> Abuse-Reports-To: abuse at airmail.net to report improper postings NNTP-Proxy-Relay: library1.airnews.net NNTP-Posting-Time: Wed Aug 11 14:45:50 1999 NNTP-Posting-Host: !\E4S1k-WHm"QbO (Encoded at Airnews!) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.01C-KIT (Win95; U) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Karl Heinz Buchegger wrote: > > ?????? > > Do you have the assignement at a global level ? > This is simply not possible because an assignement > is not a declaration. > > vert_3d p000; // global declaration > > int main() > { > p000.x = 0; > p000.y = 10; > p000.z = 20; > } > > should compile without a problem. > > Question: If my assumption is correct, what do you want > to achieve (probably initialising the struct) ? > > ----------------------------------------------------------- > Karl Heinz Buchegger > kbuchegg AT gascad DOT at At first yes, but that problem is fixed. I'm pretty sure the rest of my problem has to deal with the way I have used structs within structs and accessing such information. Thanks for your help. Matthew Heyman