Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

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();
}
 
PREVIOUS NEXT
Tagged: #create #unknown #amount #objects
ADD COMMENT
Topic
Name
3+1 =