Judging by your code you don't understand the basics of pointers. Please consult this article:
A Beginner's Guide to Pointers[
^]
Also, you are copying objects needlessly. The point of pointers (pun not intended) is that you don't need to copy; instead you refer to the same object from different locations. A copy is only needed if you want to change the object locally and don't want that change to affect the original object.