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

The class and struct keywords in C++ are almost identical.

From

Cover of Learning C++ by Creating Games with UE4

Note

struct和class基本一样。最大的区别是在class中的变量默认为private,struct则为public