Consider a smart vector type, such as C++'s std::vector or Java's ArrayList.
例如，考虑一个smart vector类型，如C++'s std::vector或Java's ArrayList。