- class的命名: 前面要加一个大写的F
方法
- 方法名大写
- 一定要写
return;
- 参数名大写
变量命名规则
- 一定要大写
- boolean 要以小写的b开头
bool bWantsToPlay = true;
常量
primitive type
const
改为constexpr
constexpr int DEMO_ONE = 5;
- bool 命名规则: b开头小写
bool bGameIsWon;
reference type
- 继续用
const
const FString GUESS = "";
String
FString
- mutable
FText
- mainly for user output/interaction
using FText = std::string;
Pointer
FXX* Fxx;