Cpp Return Array From Function Chart Maker