Original Post
Is this possible (I know stupid question...):
Will pointer_to_a_element point to the last element in the array? And the second last element when I add another object to the array?
Zeblar Nagrim, Lord of Chaos
std::vector<MYSTRUCT>vecMyDyArray; MYSTRUCT object; ... intialize here.... vecMyDyArray.pushbach(object); MYSTRYCT *pointer_to_a_element = &vecMyDyArray.back(); |