myarray = new[objectscount]; for (i=0; i<objectscount; i++) myarray[i] = {var1,{var2,var3},{var4,var5}};