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

We can attach member functions to the struct definition simply by writing these functions inside the struct Player definition

From

Cover of Learning C++ by Creating Games with UE4

Note

我们可以将函数写在结构内,让其成为成员函数