+ 1

Is there a good way to practice using pointers

I've been learning c++ and oob for about 6 months now. I had other experience with not oob programming previously. I currently keep getting stuck with pointers. I understand how they work. I'm not necessarily sure when is the most appropriate time to use them and how to use them most effectively. Any tips or different ways of thinking about them are welcome!

6th Feb 2017, 9:05 AM
Benjamin
Benjamin - avatar
4 Respuestas
+ 6
Use them whenever you need to pass an object to an outside function or class. Pass the pointer to it instead
6th Feb 2017, 9:09 AM
jay
jay - avatar
0
thank you Jay! I hadn't thought about it like that.
7th Feb 2017, 7:31 PM
Benjamin
Benjamin - avatar
0
dynamic programs that require manipulations with the data
10th Feb 2017, 7:57 AM
Andranik Baghdasaryan
Andranik Baghdasaryan - avatar