P
pradeep
Hello friends:
Say I allocate an array with
a = new int(100);
Later I want to grow the array to size 200. Do I need to allocate
another array and copy the first one to it? Is there a simpler approach
(like realloc() - my compiler doesn't recognize renew() as a function).
Thanks.
Say I allocate an array with
a = new int(100);
Later I want to grow the array to size 200. Do I need to allocate
another array and copy the first one to it? Is there a simpler approach
(like realloc() - my compiler doesn't recognize renew() as a function).
Thanks.