I suppose I have an array

mystruct* tab[..]

but how can I dynamicly add elements into it ?

I want to have a function like

addElement(myStruct *element)
{
then add *element to my array
}

I just want a hint about how I could do this

thanks