later, if I want to change a element in vectorForA, do I need first delete that pointer and put a new one like :
delete vectorForA[3];
vectorForA[3] = new A(10);
And before the program finished, I need to delete all pointers inside it like:
for (std::vector<A*>::iterator it = vectorForA.begin() ; it != vectorForA.end(); ++it)
{
delete *it
}