How To Create Array From Array Of Structures In Cpp