📜  如何在 C++ 代码示例中增加数组内存

📅  最后修改于: 2022-03-11 14:44:45.234000             🧑  作者: Mango

代码示例1
int* newArray = new int[newSize];
... copying from old array ...
int* temp = oldArray;
oldArray = newArray;
delete[] temp;