if I wanted to do for example this
class MyClass{
float x,y;
void SomeFunction()
};
void MyClass::SomeFunction(){
MyClass A = this;//????
}
How would I do that? I have virtually no experience with pointers so please help me out.
I basically want to make the new class I am creating within the class equal to the parent class or what ever you would call it. I tried puting * and & in different places but always got an error.