|
-
Jan 28th, 2003, 04:37 PM
#1
Thread Starter
Frenzied Member
Pointer(s)
Before i read into pointer basically what are they? what can i do with them? Thanks
- JayWare
Live to love. Not to Hate
Im to busy to have a site. But I got one and still working on it.
http://dre3k.net/
-
Jan 28th, 2003, 08:29 PM
#2
Pointers are variables that store the memory address of other variables. You can use them to manage dynamically allocated memory, pass object by reference, traverse arrays and do weird optimizations that you can't understand anymore 10 minutes later.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jan 28th, 2003, 09:54 PM
#3
Hyperactive Member
In C++, there are also references that are simplified version of pointers.
References:
Code:
int e = 3;
int &m = e;
m = 4;
Pointers:
Code:
int e = 3;
int* m = &e;
*m = 4;
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|