Create Object Out Of Array Initialization In Cpp