如何使指针指向同一类的真实对象的内存位置?
Class A
{
int num = 0;
A(int n) {
this->num = n;
}
}
int main()
{
A a(10);
A * aPtr;
// How do I make "aPtr" point at "a"?
// something like
// aPtr = a; (I know this wont work but what instead)
}