Original Post
Ok, im getting the hang of c++ now, but i have another query. I used to be able to use dynamic arrays in delphi where i could set a size of elements, assign values to each of them, and then later down the track, resize the array and add some more (keeping the previously set elements as they were). But in c++, i can only see ways of resizing the array discarding all previously entered values for each element.. Am i wrong? can it be done in the way delphi does it?
int *dynArray;
dynArray = new int[10];
..set array elements..
dynArray = new int[11]; <-- clearly discards previously set array element values.
Thanks again
grrr
Edited by - wAVaRiaN on November 27, 2001 9:04:43 PM