+ 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!
4 Respostas
+ 6
Use them whenever you need to pass an object to an outside function or class. Pass the pointer to it instead
0
thank you Jay! I hadn't thought about it like that.
0
dynamic programs that require manipulations with the data