How To Create Object Inside Array Initialization In Cpp