class pointers

I'm trying to create a class pointer that points to another class but I'm having issues. Its not working, my implementation is below

1
2
3
CTile2  qOriginal;
 CTile2 * qPointer; 
 qOriginal = qPointer;


You can't point to classes in C++, you can only point to class instances.
That being said, the third line should be:
qPointer = &qOriginal;

Of course, it would help knowing what you're actually trying to do.
Topic archived. No new replies allowed.