O'Reilly logo
  • LI WEI thinks this is interesting:

So, we changed me.name by changing ptrMe->name. Because ptrMe points to me, changes through ptrMe affect me directly.

From

Cover of Learning C++ by Creating Games with UE4

Note

使用指针可以更方便的对指向的对象进行操作,而让对象本身不比顾虑怎样修改自己。