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

In other words, the name and hp variables of struct Player are shared between all the member functions of struct Player

From

Cover of Learning C++ by Creating Games with UE4

Note

结构中的变量可以贯穿于成员函数被使用