Answers for "how to create an unknown amount of objects in c++"

0

how to create an unknown amount of objects in c++

Box **array = new Box*[n];
for(int i = 0; i < n; i += 1) {
    array[i] = new Box();
}
Posted by: Guest on December-24-2019

Code answers related to "how to create an unknown amount of objects in c++"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language