Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
c++ - Pointers? What is the use?
Pointers point to an address in memory. You can store data in them like standard variables. You can use the address or the actual data contained at the address.. my questions is, what do they let you do that is so great? I'm not sure at all what the added value is. I am very inexperienced as a programmer(obviously), so I was wondering if someone could explain it to me and/or show me an example or two (my book shows me how to use them and talks about how they are great and so on, but not really why they are great or how they would be used to make them great.) Confused in Spokane.... -- Marcus Koontz ikea_the_sofa _A T_ hotmail.com “Be the change you want to see in the world” Mar 23 2005
Hello, Marcus IkeaTheSofa wrote...Pointers point to an address in memory. You can store data in them like standard variables. You can use the address or the actual data contained at the address.. my questions is, what do they let you do that is so great? I'm not sure at all what the added value is. I am very inexperienced as a programmer(obviously), so I was wondering if someone could explain it to me and/or show me an example or two (my book shows me how to use them and talks about how they are great and so on, but not really why they are great or how they would be used to make them great.) Apr 01 2005
|