delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/12/06:07:27

From: Matthew Heyman <kay DOT heyman AT airmail DOT net>
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: <AD085CD2A6537793.009942CB1C607638.26841BA25104A722@lp.airnews.net>
X-Orig-Message-ID: <37B18C85 DOT 1DEA AT airmail DOT net>
References: <A7083B60FEDED7E0 DOT 7F2CBC07CD9B5AB8 DOT 019CE2E485CE12C4 AT lp DOT airnews DOT net> <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
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019