   Really Need Help With Pointers In C++.
  Hi guys. Pointers in C++ have been a pain for me ever since I started learning it 2 years ago. I understand you can use them to pass variables by reference, and in that way modify the variable directly rather than passing a copy of them.Though there are two problems:* I haven't used C++ in a long time, so I forgot a bit about the whole reference thing.* I still have problems with their operators.So I was wondering if there are any books or tutorials I can read that are just dedicated to pointers. I will highly appreciate it!   
Quote:Original post by AngelloreHi guys. Pointers in C++ have been a pain for me ever since I started learning it 2 years ago. I understand you can use them to pass variables by referenceYou would do that in C, but C++ has a better mechanism for that: references.void pass_by_value(int x){    x = 10; // does not affect caller}void pass_by_reference(int& x){    x = 10; // does affect caller}