Get Only Values From Array Of Objects In Cpp