So I know that on C pointers can do pretty neat stuff. But C++ is object oriented. I can refer to an object instead of using pointers. Am I right? So why having pointers in C++? I can understand that pointers might be implemented for compatibility reasons. Pointers were the power of C. Okay. But really, is there something you can do in C++ and the only (or best) way is using pointers?
Can you give me a good example?
To make it more clear: Is there something in C++ that I can be done only by using pointer? Can I avoid pointers and still do everything someone who uses pointers can do in C++?