delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/19/07:41:24

From: "Paul J G" <paul AT gerfen DOT freeserve DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: A Structured Problem ?
Date: Mon, 19 Jul 1999 12:03:38 -0700
Organization: Customer of Planet Online
Message-ID: <7mv0te$gq2$1@news6.svr.pol.co.uk>
NNTP-Posting-Host: modem-116.name2.dialup.pol.co.uk
X-Trace: news6.svr.pol.co.uk 932382446 17218 62.136.160.244 (19 Jul 1999 11:07:26 GMT)
NNTP-Posting-Date: 19 Jul 1999 11:07:26 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
Lines: 28
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi Guys, I really need some help big time on this one, can anyone help put
me out of my misery ?.
Right, I have a structure in my program:

struct { float xpoint[9],float ypoint[9] } shape[10];

Fine it works, everythings OK, but now I want to be able to increase the
amount of data used by xpoint and ypoint while still using the SHAPE
identifier.
eg. shape[1] will be xpoint[9],ypoint[9],        shape[2] will be
xpoint[25],ypoint[25],
     shape[3] will be xpoint[3],ypoint[3]          etc.....
However I cannot just allocate a big variable as shape[1] could be just 3
and
shape[2] could be 8000.
I still want to be able to use my - shape[ whatever ].xpoint[ whatever ] -
code.
Not knowing what the varibles xpoint, ypoint, will be at compilation time
they must be dynamically
allocated, as the file length for each shape could vary.
The idea being that I can load my 3d objects into the shape varibles.

Please Help !

Thanks, Paul
paul AT gerfen DOT freeserve DOT co DOT uk


- Raw text -


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