![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Oct 2004
Posts: 32
Rep Power: 0
![]() |
a pointer refers to the location of memory which stores the value of a variable
that much I've gathered from online tutorials, but tell me this, why use pointers instead of the variables themselves?
__________________
<CENTER><span style='font-size:17pt;line-height:100%'>My Homepage</span></CENTER> |
|
|
|
|
|
#2 | |
|
The Supreme Ruler
![]() Join Date: May 2004
Location: Houston
Posts: 1,476
Rep Power: 6
![]() |
Quote:
__________________
"Every gun that is made, every warship launched, every rocket signifies, in the final sense, a theft from those who hunger and are not fed, from those who are cold and are not clothed. The world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children." - Dwight D. Eisenhower |
|
|
|
|
|
|
#3 |
|
Programming Guru
![]() ![]() ![]() |
Speed. But its not so much that speed is an issue anymore as modern computers are excessively fast.
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
|
#4 |
|
Programmer
Join Date: Sep 2004
Location: JHB , South Africa
Posts: 79
Rep Power: 5
![]() |
wait until you enter the world of object oriented programming and polymorphism, base classes, inheritance, virtual functions and base class pointers. Thats when pointers will show their uses.
__________________
Ravilj's OpenGL Terrain aka WinTerrain Last Updated: 17/01/2005! |
|
|
|
|
|
#5 |
|
Programming Guru
![]() |
Pointers, linked Lists a must to learn but a headache all the same.
__________________
"Put your hand on a hot stove for a minute, and it seems like an hour. Sit with a pretty girl for an hour, and it seems like a minute. THAT'S relativity." - Albert Einstein |
|
|
|
|
|
#6 | |
|
Programmer
Join Date: Oct 2004
Posts: 67
Rep Power: 5
![]() |
Quote:
pointers let you direct functions to go somewhere instead of you bringing it to them... when it comes to simple variables it's all the same but when it comes to structs and similar.... imagine it like this: is it easier to tell your woman where the kitchen is or to go and cook dinner... ![]()
__________________
coffee is my heroin. |
|
|
|
|
|
|
#7 |
|
Programmer
Join Date: Oct 2004
Posts: 32
Rep Power: 0
![]() |
Thanks guys, and by guys i mean MJordan
it makes a lot more sense now Cheers
__________________
<CENTER><span style='font-size:17pt;line-height:100%'>My Homepage</span></CENTER> |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|