C++ and pointers....wth?

Printable Version
All Forums >> [Gamers Lounge] >> Game Design & Software Tools >> C++ and pointers....wth? Page: [1]
Login
Message << Older Topic   Newer Topic >>
C++ and pointers....wth? - Jul.-24th-2008 13:46:26   
g3nkie


Posts: 281
Joined: May-17th-2008
Status: offline
Ok, are pointers really difficult or are they just flying over my head? I'm kind of getting them the more I read about them but why would you need to use them?

_____________________________

Post #: 1
RE: C++ and pointers....wth? - Jul.-24th-2008 14:14:27   
ItsDubC


Posts: 1896
Joined: Mar.-22th-2007
From: My Childhood
Status: online
Pointers can be pretty tough to grasp at 1st.  As you probably already know, a pointer refers to another variable or datatype via its address in memory.  Memory operations are very fast, which is why using pointers can be very handy.

_____________________________

The phrase Next Gen[eration] is cited as a frequently-used buzzword, in which case its meaning is intentionally vague, but carries a connotation of newness or modernness.
- Wikipedia

(in reply to g3nkie)
Post #: 2
RE: C++ and pointers....wth? - Jul.-24th-2008 14:20:32   
g3nkie


Posts: 281
Joined: May-17th-2008
Status: offline
Thx for the response :) I got that much so far but as to why you would use them is still getting to me. I'm sure I'll understand more once I actually get to start using them in programs. I definitely hit a wall with pointers though.

_____________________________


(in reply to ItsDubC)
Post #: 3
RE: C++ and pointers....wth? - Jul.-24th-2008 14:30:44   
ItsDubC


Posts: 1896
Joined: Mar.-22th-2007
From: My Childhood
Status: online
Pointers are all about efficiency IMHO.  Using them can make a program or routine run much faster than without.  This is why pointers are used a lot in game development.  They also make repetitive operations faster.  You'll see what I mean when you learn about data structures such as linked lists and binary trees.  I used to have trouble grasping pointers just like you but they're a godsend later on for certain applications.

_____________________________

The phrase Next Gen[eration] is cited as a frequently-used buzzword, in which case its meaning is intentionally vague, but carries a connotation of newness or modernness.
- Wikipedia

(in reply to g3nkie)
Post #: 4
Page:   [1]
All Forums >> [Gamers Lounge] >> Game Design & Software Tools >> C++ and pointers....wth? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.5.5 Unicode

0.109