Re: Using pointers
From: jeffc (nobody_at_nowhere.com)
Date: 02/09/04
- Next message: Karl Heinz Buchegger: "Re: formatting text in another apps window"
- Previous message: jeffc: "Re: Using pointers"
- In reply to: Joec: "Re: Using pointers"
- Next in thread: Chris \( Val \): "Re: Using pointers"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 9 Feb 2004 10:12:13 -0500
"Joec" <joec@annuna.com> wrote in message
news:wWAVb.20279$uM2.2620@newsread1.news.pas.earthlink.net...
>
>
> Dan Moos wrote:
>
> > I am also a beginner, but will try and give my thoughts also.
> >
> > Dynamic memory is a good way to go when you don't know ahead of time how
> > many objects your gonna have. Like, say a 3D rendering program, in which
the
> > item being drawn has 10 or 10,000 triangles. It is inefficient to make
an
> > array or other structure that is big enough to hold the largest number
of
> > objects you predict you'll need. It's wastefull to dedicate an array of
> > 10,000 units when you might only need 10.
> >
> I think a vector would be good.
A vector *would* be good. But just keep in mind that someone already
programmed vector for you, and he used pointers to do it.
- Next message: Karl Heinz Buchegger: "Re: formatting text in another apps window"
- Previous message: jeffc: "Re: Using pointers"
- In reply to: Joec: "Re: Using pointers"
- Next in thread: Chris \( Val \): "Re: Using pointers"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|