|
||
|
GP Mailing List
ATXGPSIG List
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: Beginner question
You seem to have a basic understanding of what they are. Yeah, they
just point to a certan spot in the memory, but they have a lot of
advantages. For one, they can point to an array or something, so they don't
have to be just one object (kind of). Also, they can just have a block of
memory allocated (via malloc(...) or new). This greatly improves the
flexibility of C++. This doesn't explain it too well, but I hope it helps a
little.
>From: wegifford <wegifford@GRUMPY.FORTLEWIS.EDU>
>Reply-To: gameprogrammer@gameprogrammer.com
>To: gameprogrammer@gameprogrammer.com
>Subject: Beginner question
>Date: Thu, 08 Jun 2000 20:28:51 -0600
>
>Hey there,
> I am a beginner and I am covering pointers and have a few questions.
>The
>book I am using is not giving me the best explanation. The code makes tons
>of
>sense but I want to know a little more about what a pointer is.
> As I understand it a pointer variable is pointing to a variable
>location in
>memory. So when passed in a function it is not exactly being passed but
>where
>the variable is located is being pass. What is a pointer exactly used for?
>Is
>the previous explantion the answer. If so when is the best time to declare
>and use pointers? What is a benefit of a pointer? Is it just speed? Any
>help
>you all could give would shed light on this concept.
>
> William
>
>
>=================================================================
>The GameProgrammer.Com mailing list is for the open discussion
>of any topic related to the art, science, and business of
>programming games. This list is especially tolerant of beginners.
>We were all beginners once
>
>To SUBSCRIBE or UNSUBSCRIBE please visit:
>http://gameprogrammer.com/mailinglist.html
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
=================================================================
The GameProgrammer.Com mailing list is for the open discussion
of any topic related to the art, science, and business of
programming games. This list is especially tolerant of beginners.
We were all beginners once
To SUBSCRIBE or UNSUBSCRIBE please visit:
http://gameprogrammer.com/mailinglist.html
|
|