[c++] How to create a dynamic array of integers