Original Post
Hello How can I create multiple objects and put them in an array in a for loop? lets say I have a object array called: object_array of object3d kind. object3d *object_array [NUM_OBJECTS]; and lets say I can create one object of particle3d kind called part1 as follow: particle3d *part1 = new particle3d (0.4,0,0, 0); part1->setPosition(*(new vec3(-10,10,0))); object_array[1]=part1; now I dont know how I can create multiple of the part1 object and then put it in object_array inside a for loop. I tried this but didnt work, :( any idea? for (i=0;i<=100;j++) { particle3d *part+i = new particle3d (0.4,0,0); . . . } thank you