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

It probably occurred to you that we won't always know the size of an array at the start of a program. We would need to allocate the array's size dynamically.

From

Cover of Learning C++ by Creating Games with UE4

Note

如果我们要创建一个数组,但不知道要创建多大,我们就需要动态数组。将静态数字的序号用变量代替会发生变异错误