onurozturk
10-24-2010, 04:35 AM
Hi,
In the book it mentions about a method called resize which is supposed to resize an array without preserving its contents. In my application I have to dynamically resize an array in order to accomodate newcoming array members determined in runtime. Could you suggest a way to do this? Can using stl vector methods like push back in conjunction with NR types be a remedy? If so, an example piece of code for me to see the syntax would be greatly appreciated.
Thanks,
Onur
In the book it mentions about a method called resize which is supposed to resize an array without preserving its contents. In my application I have to dynamically resize an array in order to accomodate newcoming array members determined in runtime. Could you suggest a way to do this? Can using stl vector methods like push back in conjunction with NR types be a remedy? If so, an example piece of code for me to see the syntax would be greatly appreciated.
Thanks,
Onur