I got a array of this kind
VehicleTwoD *vehicletwod[100];
Then i create this vector
vector<VechicleTwoD*> sortVector;
Then i did this
//arrayCounter is an integer that record the element count of array vehicletwod
sortVector.assign(vehicletwod, vehicletwod+ arrayCounter);
But now i try call a function of vehicletwod by using
sortVector->getName();
It doesnt work, error message was sortVector does not have such function. how can i retrieve it or its impossible?